]> git.karo-electronics.de Git - karo-tx-linux.git/commit
workqueue: use manager lock only to protect worker_idr
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 20 May 2014 09:46:27 +0000 (17:46 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 20 May 2014 14:59:30 +0000 (10:59 -0400)
commit9625ab1727743f6a164df26b7b1eeeced7380b42
treed3da8ffc218ca3077ebbc140eb7f345a2bae38f1
parentcf416171e7e1d966111f53bdae82f51af05e7bf8
workqueue: use manager lock only to protect worker_idr

worker_idr is highly bound to managers and is always/only accessed in manager
lock context. So we don't need pool->lock for it.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c