From: Lai Jiangshan Date: Tue, 3 Jun 2014 07:32:52 +0000 (+0800) Subject: workqueue: clear leftover flags when detached X-Git-Tag: omap-for-v3.17/fixes-against-rc2~192^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b62c075194f409ed887670af897ad22d44ed8ac8;p=pandora-kernel.git workqueue: clear leftover flags when detached 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 may cause unneeded wakeup. It is correct but not good, so we just remove the leftover flags. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed