]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: move pwq_pool_locking outside of get/put_unbound_pool()
authorTejun Heo <tj@kernel.org>
Mon, 1 Apr 2013 18:23:32 +0000 (11:23 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 1 Apr 2013 18:23:32 +0000 (11:23 -0700)
commit3379343c07b40a16524b85a9f9a7e730975cdcc5
treebbc2973a8d16bd643c4033cce6229049ff780e30
parent953d7028853eae20343ecd840ae43a4bf234ef74
workqueue: move pwq_pool_locking outside of get/put_unbound_pool()

The scheduled NUMA affinity support for unbound workqueues would need
to walk workqueues list and pool related operations on each workqueue.

Move wq_pool_mutex locking out of get/put_unbound_pool() to their
callers so that pool operations can be performed while walking the
workqueues list, which is also protected by wq_pool_mutex.

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