]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd208c8bd49716f69ff949c2462e73cf83c75c445
treec0e1d3e1d90758d2f4f3f8cad6beea316d68b5a0
parentf91b9c58e59e18593993614db109c38410976413
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