swsusp: don't sync with stopped pdflush

From: Pavel Machek (pavel@ucw.cz)
Date: Fri Feb 21 2003 - 04:46:57 EST


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?]
-
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 : Sun Feb 23 2003 - 22:00:33 EST