]> Git Repo - linux.git/commit - include/linux/wait.h
locking, sched: Give waitqueue spinlocks their own lockdep classes
authorPeter Zijlstra <[email protected]>
Mon, 10 Aug 2009 11:33:05 +0000 (12:33 +0100)
committerIngo Molnar <[email protected]>
Mon, 10 Aug 2009 12:43:09 +0000 (14:43 +0200)
commit2fc391112fb6f3424435a3aa2fda887497b5f807
tree89cda7002d591807536dca68b6344a558b081428
parentbeda2c7ea2c15ed01eef00a997d2b0496c3a502d
locking, sched: Give waitqueue spinlocks their own lockdep classes

Give waitqueue spinlocks their own lockdep classes when they
are initialised from init_waitqueue_head().  This means that
struct wait_queue::func functions can operate other waitqueues.

This is used by CacheFiles to catch the page from a backing fs
being unlocked and to wake up another thread to take a copy of
it.

Signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: David Howells <[email protected]>
Tested-by: Takashi Iwai <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <20090810113305[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/wait.h
kernel/wait.c
This page took 0.054881 seconds and 4 git commands to generate.