From: Dmitry Torokhov <dtor_core@ameritech.net>
To: linux-kernel@vger.kernel.org
Cc: sam@ravnborg.org, Pavel Machek <pavel@suse.cz>,
Patrick Mochel <mochel@digitalimplant.org>,
Andrew Morton <akpm@zip.com.au>
Subject: Re: [0/25] Merge pmdisk and swsusp
Date: Tue, 20 Jul 2004 12:41:51 -0500 [thread overview]
Message-ID: <200407201241.52334.dtor_core@ameritech.net> (raw)
In-Reply-To: <20040720192858.GB9147@mars.ravnborg.org>
On Tuesday 20 July 2004 02:28 pm, sam@ravnborg.org wrote:
> On Tue, Jul 20, 2004 at 06:46:40PM +0200, Pavel Machek wrote:
> > Hi!
> >
> > > In the end, these patches remove pmdisk from the kernel and clean up the
> > > swsusp code base. The result is a single code base with greatly improved
> > > code, that will hopefully help others underestand it better.
> >
> > Followup patch:
> >
> > * if machine halt fails, it is very dangerous to continue.
> >
> > diff -ur linux.middle/kernel/power/disk.c linux/kernel/power/disk.c
> > --- linux.middle/kernel/power/disk.c 2004-07-19 08:58:08.000000000 -0700
> > +++ linux/kernel/power/disk.c 2004-07-19 15:00:16.000000000 -0700
> > @@ -63,6 +63,9 @@
> > break;
> > }
> > machine_halt();
> > + /* Valid image is on the disk, if we continue we risk serious data corruption
> > + after resume. */
> > + while(1);
>
> Would be nicer to use:
>
> while(1)
> /* Loop forever */;
>
> Sam
And even nicer would be remove swsusp signature from swap and restore state as
original version did so user could do clean shutdown...
--
Dmitry
next prev parent reply other threads:[~2004-07-20 19:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-17 22:34 Patrick Mochel
2004-07-18 22:04 ` Pavel Machek
2004-07-18 22:04 ` Nigel Cunningham
2004-07-19 1:24 ` Andrew Morton
2004-07-18 22:27 ` Pavel Machek
2004-08-02 5:13 ` Patrick Mochel
2004-07-20 16:46 ` Pavel Machek
2004-07-20 19:28 ` sam
2004-07-20 17:41 ` Dmitry Torokhov [this message]
2004-07-20 19:21 ` Pavel Machek
2004-08-02 5:42 ` Patrick Mochel
2004-08-06 19:43 ` Pavel Machek
2004-07-27 7:17 ` Felipe Alfaro Solana
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=200407201241.52334.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@digitalimplant.org \
--cc=pavel@suse.cz \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®