From: Tony Lindgren <tony@atomide.com>
To: linux-kernel@vger.kernel.org
Cc: mochel@osdl.org
Subject: [PATCH] Make pmdisk suspend more reliable
Date: Sun, 12 Oct 2003 09:18:28 -0700 [thread overview]
Message-ID: <20031012161828.GA1728@atomide.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 329 bytes --]
Hi Patrick & all,
Here's a little patch to make pmdisk suspend to disk work on my old
laptop. Basically at least the PMDISK_SIG never got to the disk, and
finding the suspend image would fail without this patch. The patch is
against linux-2.6.0-test7.
Pls cc me on any replies, I'm not on the list right now.
Regards,
Tony
[-- Attachment #2: pmdisk-bdflush.patch --]
[-- Type: text/plain, Size: 560 bytes --]
--- linux-2.6.0-test7/kernel/power/pmdisk.c-orig 2003-10-12 18:35:58.000000000 +0300
+++ linux-2.6.0-test7/kernel/power/pmdisk.c 2003-10-12 19:00:32.000000000 +0300
@@ -35,6 +35,7 @@
extern int pmdisk_arch_suspend(int resume);
+extern int wakeup_bdflush(long nr_pages);
#define __ADDRESS(x) ((unsigned long) phys_to_virt(x))
#define ADDRESS(x) __ADDRESS((x) << PAGE_SHIFT)
@@ -372,6 +373,9 @@
goto FreePagedir;
error = mark_swapfiles(prev);
+
+ /* Make sure the data gets to disk */
+ wakeup_bdflush(0);
Done:
return error;
FreePagedir:
next reply other threads:[~2003-10-12 16:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-12 16:18 Tony Lindgren [this message]
2003-10-12 18:07 ` [PATCH] Make pmdisk suspend more reliable Sam Ravnborg
2003-10-14 15:19 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031012161828.GA1728@atomide.com \
--to=tony@atomide.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox