Skip to contentSkip to conversation

swsusp: don't sync with stopped pdflush

PATCH Pavel Machek 1 participant 1 message Feb 21, 2003

lore
Share & tools
lore
#0 lore raw

Hi!

Patch from Nigel, please apply.
Pavel

kernel/suspend.c +1 -1
@@ -604,12 +606,12 @@
 
 static int prepare_suspend_processes(void)
 {
+	sys_sync();	/* Syncing needs pdflushd, so do it before stopping processes */
 	if (freeze_processes()) {
 		printk( KERN_ERR "Suspend failed: Not all processes stopped!\n" );
 		thaw_processes();
 		return 1;
 	}
-	sys_sync();
 	return 0;
 }
 
Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]