Cc: Trond Myklebust <trond.myklebust@...>, Andrew Morton <akpm@...>, Marc Dietrich <Marc.Dietrich@...>, Neil Brown <neilb@...>, <nfs@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>, Peter Zijlstra <a.p.zijlstra@...>
I am not sure, but currently I hope we can forbid this eventually, so I
personally think it is good that your patch complains.
But this makes ->lockdep_map meaningless? We always take wq->lockdep_map
for reading, now we can't detect deadlocks.
read_lock(A);
lock(B);
vs
lock(B);
read_lock(A);
is valid, kernel/lockdep.c should not complain.
No?
Oleg.
-