Re: [PATCH] workqueue: wake regular worker if need_more_worker() when rescuer leave the pool

From: Tejun Heo
Date: Fri Jul 18 2014 - 18:46:48 EST


On Wed, Jul 16, 2014 at 02:56:36PM +0800, Lai Jiangshan wrote:
> We don't need to wake up regular worker when nr_running==1,
> so need_more_worker() is sufficient here.
>
> And need_more_worker() gives us better readability due to the name of
> "keep_working()" implies the rescuer should keep working now but
> the rescuer is actually leaving.
>
> Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>

Applied to wq/for-3.17.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/