Re: 2.6.7-mm7

From: Andrew Morton
Date: Fri Jul 09 2004 - 13:56:27 EST


Jesse Stockall <stockall@xxxxxxxx> wrote:
>
> + *
> + * Unfortunately we have to use a separate wait queue, because we need
> + * to make sure that a thread waiting for a writelock won't block other
> + * threads from acquiring a readlock.
> */
> void usb_lock_all_devices(void)
> {
> - down_write(&usb_all_devices_rwsem);
> + wait_event(usb_all_devices_wqh,
> + 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?
-
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/