Re: [PATCH 7/9 V3] workqueue: explicit way to wait for idles workers to finish

2012-08-29 Thread Tejun Heo
Hello, On Thu, Aug 30, 2012 at 12:51:58AM +0800, Lai Jiangshan wrote: > busy_worker_rebind_fn() can't return until all idle workers are rebound. > This order is ensured by rebind_workers() currently. > > We use mutex_lock(&worker->pool->manager_mutex) to wait for all idle workers > to be rebound.

[PATCH 7/9 V3] workqueue: explicit way to wait for idles workers to finish

2012-08-29 Thread Lai Jiangshan
busy_worker_rebind_fn() can't return until all idle workers are rebound. This order is ensured by rebind_workers() currently. We use mutex_lock(&worker->pool->manager_mutex) to wait for all idle workers to be rebound. this is an explicit way and it will ease the pain of the rebind_workers(). The