Messages in this thread | | | Date | Tue, 22 Jul 2014 11:27:26 -0400 | From | Tejun Heo <> | Subject | Re: [PATCH v2] workqueue: detach rescuer from pool until the last |
| |
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@cn.fujitsu.com>
Applied to wq/for-3.17.
Thanks.
-- tejun
| |