Re: [PATCH 2/2] lockdep: Don't only check recursive read locksonce in a sequence

From: Peter Zijlstra
Date: Thu Nov 19 2009 - 12:14:06 EST


On Thu, 2009-11-19 at 16:55 +0100, Frederic Weisbecker wrote:
> And btw I
> don't understand why rwsem read locks are not considered as
> recursive in lockdep.

Because they're not.

rwsems are FIFO fair, so a double read can deadlock when there's a
pending writer inbetween.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/