[PATCH] lockdep: annotate nfs/nfsd in-kernel sockets

Stick NFS sockets in their own class to avoid some lockdep warnings.  NFS
sockets are never exposed to user-space, and will hence not trigger certain
code paths that would otherwise pose deadlock scenarios.

[[email protected]: cleanups]
Signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: Steven Dickson <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Trond Myklebust <[email protected]>
Acked-by: Neil Brown <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
[ Fixed patch corruption by quilt, pointed out by Peter Zijlstra ]
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Peter Zijlstra 2006-12-06 20:35:24 -08:00 • committed by Linus Torvalds
commit ed07536ed6
5 changed files with 87 additions and 18 deletions

View file

@ -2645,6 +2645,7 @@ void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len)
}
local_irq_restore(flags);
}
EXPORT_SYMBOL_GPL(debug_check_no_locks_freed);
static void print_held_locks_bug(struct task_struct *curr)
{