diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-18 06:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:18 -0400 |
commit | 232b14328050a4639130b0dec185f43968e72035 (patch) | |
tree | eb3b525278bd3efd5403bc4f5cfb3e41614d40c4 /kernel/power/disk.c | |
parent | 2776365370b579afc36cff14dc70a567b66f0378 (diff) |
freezer: do not sync filesystems from freeze_processes
The syncing of filesystems from within the freezer is generally not needed.
Also, if there's an ext3 filesystem loopback-mounted from a FUSE one, the
syncing results in writes to it and deadlocks. Similarly, it will deadlock if
FUSE implements sync.
Change freeze_processes() so that it doesn't execute sys_sync() and make the
suspend and hibernation code path sync filesystems independently of the
freezer.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power/disk.c')
-rw-r--r-- | kernel/power/disk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 9348d95a4fb8..555c0f0b2f7e 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -313,6 +313,10 @@ int hibernate(void) | |||
313 | if (error) | 313 | if (error) |
314 | goto Exit; | 314 | goto Exit; |
315 | 315 | ||
316 | printk("Syncing filesystems ... "); | ||
317 | sys_sync(); | ||
318 | printk("done.\n"); | ||
319 | |||
316 | error = prepare_processes(); | 320 | error = prepare_processes(); |
317 | if (error) | 321 | if (error) |
318 | goto Finish; | 322 | goto Finish; |