swsusp: don't sync with stopped pdflush

Pavel Machek (pavel@ucw.cz)
Fri, 21 Feb 2003 10:46:57 +0100


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/