Skip to content
Commit 1258fae7 authored by Tejun Heo's avatar Tejun Heo
Browse files

workqueue: Replace pool->attach_mutex with global wq_pool_attach_mutex



To improve workqueue visibility, we want to be able to access
workqueue information from worker tasks.  The per-pool attach mutex
makes that difficult because there's no way of stabilizing task ->
worker pool association without knowing the pool first.

Worker attach/detach is a slow path and there's no need for different
pools to be able to perform them concurrently.  This patch replaces
the per-pool attach_mutex with global wq_pool_attach_mutex to prepare
for visibility improvement changes.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent e6506eb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment