]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: add WARN_ON_ONCE() on CPU number to wq_worker_waking_up()
authorJoonsoo Kim <js1304@gmail.com>
Fri, 26 Oct 2012 14:03:49 +0000 (23:03 +0900)
committerTejun Heo <tj@kernel.org>
Sun, 2 Dec 2012 00:45:45 +0000 (16:45 -0800)
commitdc8767c592b1e084e5222c2832727e3480395a6d
tree1cc95124c9108e24ee18a7d9af2e511fd735daae
parent044d21d8ff53bcafd6188624338d94650c04e2c9
workqueue: add WARN_ON_ONCE() on CPU number to wq_worker_waking_up()

Recently, workqueue code has gone through some changes and we found
some bugs related to concurrency management operations happening on
the wrong CPU.  When a worker is concurrency managed
(!WORKER_NOT_RUNNIG), it should be bound to its associated cpu and
woken up to that cpu.  Add WARN_ON_ONCE() to verify this.

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c