Skip to content

Commit

Permalink
workqueue: introduce global cwq and unify cwq locks
Browse files Browse the repository at this point in the history
There is one gcwq (global cwq) per each cpu and all cwqs on an cpu
point to it.  A gcwq contains a lock to be used by all cwqs on the cpu
and an ida to give IDs to workers belonging to the cpu.

This patch introduces gcwq, moves worker_ida into gcwq and make all
cwqs on the same cpu use the cpu's gcwq->lock instead of separate
locks.  gcwq->ida is now protected by gcwq->lock too.

Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Tejun Heo committed Jun 29, 2010
1 parent a0a1a5f commit 8b03ae3
Showing 1 changed file with 98 additions and 62 deletions.
Loading

0 comments on commit 8b03ae3

Please sign in to comment.