On Mon, Apr 08, 2002, Oliver Neukum <[EMAIL PROTECTED]> wrote:
> using sleep_on is a race. The attached patch replaces it with the
> new wait_event macro from sched.h. The patch is against the 2.5
> from Greg.

Greg, I've tested this against 2.4.19-pre6 as well and the attached
patch is relative to that.

Please apply.

Thank Oliver!

JE

--- linux-2.4.19-pre6.orig/drivers/usb/hub.c    Sun Apr  7 13:22:10 2002
+++ linux-2.4.19-pre6/drivers/usb/hub.c Tue Apr  9 21:46:44 2002
@@ -912,7 +912,7 @@
        /* Send me a signal to get me die (for debugging) */
        do {
                usb_hub_events();
-               interruptible_sleep_on(&khubd_wait);
+               wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list)); 
        } while (!signal_pending(current));
 
        dbg("usb_hub_thread exiting");

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to