Re: [PATCH 1/8] lockdep: fix recursive read lock validation

From: Bart Van Assche
Date: Tue Apr 29 2008 - 09:17:08 EST


On Tue, Apr 29, 2008 at 2:57 PM, Gautham R Shenoy <ego@xxxxxxxxxx> wrote:
> Subject: lockdep: fix recursive read lock validation
> This means that the following sequence is now invalid, whereas previously
> it was considered valid:
>
> rlock(a); rlock(b); runlock(b); runlock(a)
> rlock(b); rlock(a);

Why are you marking this sequence as invalid ? Although it can be
debated whether it is good programming practice to be inconsistent
about the order of read-locking, the above sequence can't be involved
in a deadlock.

Bart.
--
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/