Skip to contentSkip to conversation

swsusp: Vojtech pointed error in usb/hub.c

PATCH Pavel Machek 1 participant 1 message Aug 1, 2002 USB

lore
Share & tools
lore
#0 lore raw

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

drivers/usb/core/hub.c +1 -1
@@ -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");
Signature · 2 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?