[PATCH] lockdep: allow read_lock() recursion of same class
authorIngo Molnar <mingo@elte.hu>
Mon, 3 Jul 2006 07:24:51 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 3 Jul 2006 22:27:04 +0000 (15:27 -0700)
commit6c9076ec9cd448f43bbda871352a7067f456ee26
tree8691366aa511f20146eb9cfe942e0d94c4136e1a
parentfbb9ce9530fd9b66096d5187fa6a115d16d9746c
[PATCH] lockdep: allow read_lock() recursion of same class

From: Ingo Molnar <mingo@elte.hu>

lockdep so far only allowed read-recursion for the same lock instance.
This is enough in the overwhelming majority of cases, but a hostap case
triggered and reported by Miles Lane relies on same-class
different-instance recursion.  So we relax the restriction on read-lock
recursion.

(This change does not allow rwsem read-recursion, which is still
forbidden.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/lockdep.c
lib/locking-selftest.c