Messages in this thread | | | Date | Fri, 9 Jul 2004 11:54:11 -0700 | From | Andrew Morton <> | Subject | Re: 2.6.7-mm7 |
| |
Jesse Stockall <stockall@magma.ca> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |