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 <[email protected]>
Signed-off-by: Yong Zhang <[email protected]>
Signed-off-by: Andy Walls <[email protected]>
Tested-by: Andy Walls <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2 files changed