]> 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)
commite1fbe94e07c9288e83c53b2b49a046d6fc8ec8bf
treebbc2973a8d16bd643c4033cce6229049ff780e30
parent4b773fe8399179993bca0955e5d058f1e62ab067
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