mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* swsusp: don't sync with stopped pdflush
@ 2003-02-21  9:46 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2003-02-21  9:46 UTC (permalink / raw)
  To: torvalds, kernel list, Rusty trivial patch monkey Russell, ncunningham

Hi!

Patch from Nigel, please apply.
						Pavel
--- clean/kernel/suspend.c	2003-02-11 17:41:41.000000000 +0100
+++ linux/kernel/suspend.c	2003-02-21 10:40:02.000000000 +0100
@@ -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;
 }
 

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-21  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21  9:46 swsusp: don't sync with stopped pdflush Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®