Re: [PATCH] lockdep/selftest: Add tests for the mixed read-write case.

2013-03-26 Thread Daniel Vetter
On Tue, Mar 26, 2013 at 5:14 PM, Maarten Lankhorst wrote: > rlock_AA5 will pass unexpectedly, marking the test as FAILED and breaking > lockdep for everyone. > > The following test should make lockdep complain, but currently doesn't: > > lock(a); readlock(x); > > writelock(x); lock(a); > > Signed

[PATCH] lockdep/selftest: Add tests for the mixed read-write case.

2013-03-26 Thread Maarten Lankhorst
rlock_AA5 will pass unexpectedly, marking the test as FAILED and breaking lockdep for everyone. The following test should make lockdep complain, but currently doesn't: lock(a); readlock(x); writelock(x); lock(a); Signed-off-by: Maarten Lankhorst --- diff --git a/lib/locking-selftest.c b/lib/