Re: [PATCH 03/11 V5] workqueue: new day don't need WORKER_REBIND for busy rebinding

2012-09-05 Thread Lai Jiangshan
On 09/06/2012 02:31 AM, Tejun Heo wrote: > On Wed, Sep 05, 2012 at 06:37:40PM +0800, Lai Jiangshan wrote: >> because old busy_worker_rebind_fn() have to wait until all idle worker >> finish. >> so we have to use two flags WORKER_UNBOUND and WORKER_REBIND to avoid >> prematurely clear all NOT_RUNNI

Re: [PATCH 03/11 V5] workqueue: new day don't need WORKER_REBIND for busy rebinding

2012-09-05 Thread Tejun Heo
On Wed, Sep 05, 2012 at 06:37:40PM +0800, Lai Jiangshan wrote: > because old busy_worker_rebind_fn() have to wait until all idle worker finish. > so we have to use two flags WORKER_UNBOUND and WORKER_REBIND to avoid > prematurely clear all NOT_RUNNING bit when highly frequent offline/online. > > b

[PATCH 03/11 V5] workqueue: new day don't need WORKER_REBIND for busy rebinding

2012-09-05 Thread Lai Jiangshan
because old busy_worker_rebind_fn() have to wait until all idle worker finish. so we have to use two flags WORKER_UNBOUND and WORKER_REBIND to avoid prematurely clear all NOT_RUNNING bit when highly frequent offline/online. but current code don't need to wait idle workers. so we don't need to use