workqueue: avoid false negative in assert_manager_or_pool_lock()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 19 Mar 2013 19:28:21 +0000 (03:28 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 20 Mar 2013 18:21:34 +0000 (11:21 -0700)
commit519e3c1163ce2b2d510b76b0f5b374198f9378f3
tree57fc8b79a3e9a64517a328dd626a4df2b2d0227f
parent881094532e2a27406a5f06f839087bd152a8a494
workqueue: avoid false negative in assert_manager_or_pool_lock()

If lockdep complains something for other subsystem, lockdep_is_held()
can be false negative, so we need to also test debug_locks before
triggering WARN.

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