Re: [PATCH] workqueue: clear leftover flags when detached

2014-06-19 Thread Tejun Heo
On Tue, Jun 03, 2014 at 03:32:52PM +0800, Lai Jiangshan wrote: > When a worker is detached, the worker->flags may still have WORKER_UNBOUND > or WORKER_REBOUND, it is OK for all cases: > 1) if it is a normal worker, the worker will be dead, it is OK. > 2) if it is a rescuer, it may re-attach

Re: [PATCH] workqueue: clear leftover flags when detached

2014-06-19 Thread Tejun Heo
On Tue, Jun 03, 2014 at 03:32:52PM +0800, Lai Jiangshan wrote: When a worker is detached, the worker-flags may still have WORKER_UNBOUND or WORKER_REBOUND, it is OK for all cases: 1) if it is a normal worker, the worker will be dead, it is OK. 2) if it is a rescuer, it may re-attach to a

[PATCH] workqueue: clear leftover flags when detached

2014-06-03 Thread Lai Jiangshan
When a worker is detached, the worker->flags may still have WORKER_UNBOUND or WORKER_REBOUND, it is OK for all cases: 1) if it is a normal worker, the worker will be dead, it is OK. 2) if it is a rescuer, it may re-attach to a pool with this leftover flag[s], it is still correct except it

[PATCH] workqueue: clear leftover flags when detached

2014-06-03 Thread Lai Jiangshan
When a worker is detached, the worker-flags may still have WORKER_UNBOUND or WORKER_REBOUND, it is OK for all cases: 1) if it is a normal worker, the worker will be dead, it is OK. 2) if it is a rescuer, it may re-attach to a pool with this leftover flag[s], it is still correct except it