Re: 2.6.7-mm7

From: Andrew Morton
Date: Fri Jul 09 2004 - 15:10:18 EST


Jesse Stockall <stockall@xxxxxxxx> wrote:
>
> On Fri, 2004-07-09 at 14:54, Andrew Morton wrote:
> down_write_trylock(&usb_all_devices_rwsem));
> >
> > That's a bit unusual. Could you (or Alan) please explain the reason for
> > this a little more?
>
> I believe you want this thread
>
> http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108923404032264&w=2

Oh, OK. Recursively taking an rwsem for reading is certainly deadlocky.
The main reason for not supporting this is that heavy down_read() traffic
can trivially livelock down_write() waiters. Alan's patch will introduce
that shortcoming.

Really, it would be better to get the locking sorted out.
-
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/