]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: protect wq->nr_drainers and ->flags with wq->mutex
authorLai Jiangshan <laijs@cn.fujitsu.com>
Mon, 25 Mar 2013 23:57:18 +0000 (16:57 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 25 Mar 2013 23:57:18 +0000 (16:57 -0700)
commitc0cbc85463e9ba80cd1c8f551ddc8e358c1e69f8
tree2da27793071072983a69a8808c9c7dad4b0c568b
parentcda1d695fed1d0e21581a9b7db7d56cc3044b8cb
workqueue: protect wq->nr_drainers and ->flags with wq->mutex

We're expanding wq->mutex to cover all fields specific to each
workqueue with the end goal of replacing pwq_lock which will make
locking simpler and easier to understand.

wq->nr_drainers and ->flags are specific to each workqueue.  Protect
->nr_drainers and ->flags with wq->mutex instead of pool_mutex.

tj: Rebased on top of the current dev branch.  Updated description.

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