workqueue: mark lock acquisition on worker_maybe_bind_and_lock()
authorNamhyung Kim <namhyung@gmail.com>
Sun, 22 Aug 2010 14:19:43 +0000 (23:19 +0900)
committerTejun Heo <tj@kernel.org>
Mon, 23 Aug 2010 09:37:49 +0000 (11:37 +0200)
commit972fa1c5316d18c8297123e08e9b6930ca34f888
treeb96c34cb7ac493a80d959db6b361d2e87e854e06
parent06bd6ebffae36d3b105677598c48e8bd0a10b205
workqueue: mark lock acquisition on worker_maybe_bind_and_lock()

worker_maybe_bind_and_lock() actually grabs gcwq->lock but was missing proper
annotation. Add it. So this patch will remove following sparse warnings:

 kernel/workqueue.c:1214:13: warning: context imbalance in 'worker_maybe_bind_and_lock' - wrong count at exit
 arch/x86/include/asm/irqflags.h:44:9: warning: context imbalance in 'worker_rebind_fn' - unexpected unlock
 kernel/workqueue.c:1991:17: warning: context imbalance in 'rescuer_thread' - unexpected unlock

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