• Namhyung Kim's avatar
    workqueue: mark lock acquisition on worker_maybe_bind_and_lock() · 972fa1c5
    Namhyung Kim authored
    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: default avatarNamhyung Kim <namhyung@gmail.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    972fa1c5
workqueue.c 96.5 KB