summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-01-24 11:01:33 -0800
committerTejun Heo <tj@kernel.org>2013-01-24 11:01:33 -0800
commit94cf58bb2907bd2702fce2266955e29ab5261f53 (patch)
tree32b7998f475bf41754c74e9e55c45213263c89df /block
parentd565ed6309300304de4a865a04adef07a85edc45 (diff)
downloadblackbird-obmc-linux-94cf58bb2907bd2702fce2266955e29ab5261f53.tar.gz
blackbird-obmc-linux-94cf58bb2907bd2702fce2266955e29ab5261f53.zip
workqueue: make hotplug processing per-pool
Instead of holding locks from both pools and then processing the pools together, make hotplug processing per-pool - grab locks of one pool, process it, release it and then proceed to the next pool. rebind_workers() is updated to take and process @pool instead of @gcwq which results in a lot of de-indentation. gcwq_claim_assoc_and_lock() and its counterpart are replaced with in-line per-pool locking. While this patch changes processing order across pools, order within each pool remains the same. As each pool is independent, this shouldn't break anything. This is part of an effort to remove global_cwq and make worker_pool the top level abstraction, which in turn will help implementing worker pools with user-specified attributes. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud