]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: spin_lock_nest_lock()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 11 Aug 2008 07:30:24 +0000 (09:30 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 07:30:24 +0000 (09:30 +0200)
commitb416c823e9342ec27bf4efb4549b5052286ae449
tree24481f2fe7206ef69800a33df6ac3e1716085326
parent76f5c466b5f9063e5c2fbb4a78856f17fb7d443f
lockdep: spin_lock_nest_lock()

Expose the new lock protection lock.

This can be used to annotate places where we take multiple locks of the
same class and avoid deadlocks by always taking another (top-level) lock
first.

NOTE: we're still bound to the MAX_LOCK_DEPTH (48) limit.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/lockdep.h
include/linux/spinlock.h
include/linux/spinlock_api_smp.h
kernel/spinlock.c