Re: [PATCH v2] workqueue: detach rescuer from pool until the last

From: Tejun Heo
Date: Tue Jul 22 2014 - 11:27:36 EST


On Tue, Jul 22, 2014 at 01:03:47PM +0800, Lai Jiangshan wrote:
> In 51697d393922 ("workqueue: use generic attach/detach routine for rescuers"),
> The rescuer detaches itself from the pool before put_pwq() so that
> the put_unbound_pool() will not destroy the rescuer-attached pool.
>
> It is unnecessary, worker_detach_from_pool() can be used as the last
> statement to access to the pool as the same as the regular workers,
> put_unbound_pool() will wait for it to detach and then free the pool.
>
> So we move the worker_detach_from_pool() down, make it coincide with
> the regular workers.
>
> 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/