kthread_work: make lockdep happy
authorYong Zhang <yong.zhang0@gmail.com>
Wed, 22 Dec 2010 09:27:53 +0000 (10:27 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 22 Dec 2010 09:27:53 +0000 (10:27 +0100)
commit4f32e9b1f812fd6c00cc85a127583fefbdedaedc
treec0e1d3e1d90758d2f4f3f8cad6beea316d68b5a0
parent90a8a73c06cc32b609a880d48449d7083327e11a
kthread_work: make lockdep happy

spinlock in kthread_worker and wait_queue_head in kthread_work both
should be lockdep sensible, so change the interface to make it
suiltable for CONFIG_LOCKDEP.

tj: comment update

Reported-by: Nicolas <nicolas.mailhot@laposte.net>
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Tested-by: Andy Walls <awalls@md.metrocast.net>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/kthread.h
kernel/kthread.c