Hi!
We do not want threads exiting because of suspend, so refrigerator
should be just before test for signals pending (so it has chance to
kill them).
Pavel
--- clean/drivers/usb/core/hub.c Wed Jul 24 17:54:21 2002
+++ linux-swsusp/drivers/usb/core/hub.c Tue Jul 30 21:28:49 2002
@@ -1059,9 +1059,9 @@
/* Send me a signal to get me die (for debugging) */
do {
usb_hub_events();
+ wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
- wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
} while (!signal_pending(current));
dbg("usb_hub_thread exiting");
-- Worst form of spam? Adding advertisment signatures ala sourceforge.net. What goes next? Inserting advertisment *into* email? - 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/
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:15 EST