From: "Nigel Cunningham" <ncunningham@linuxmail.com>
To: "Herbert Xu" <herbert@gondor.apana.org.au>,
"Pavel Machek" <pavel@ucw.cz>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: SOFTWARE_SUSPEND as a module
Date: Fri, 23 Apr 2004 23:28:51 +1000 [thread overview]
Message-ID: <opr6wvqddzruvnp2@laptop-linux.wpcb.org.au> (raw)
In-Reply-To: <20040423093836.GA10550@gondor.apana.org.au>
Hi.
On Fri, 23 Apr 2004 19:38:36 +1000, Herbert Xu
<herbert@gondor.apana.org.au> wrote:
> What I've done is:
>
> * Split swsusp.c into swsusp-core.c and the rest based on whether it
> is called by do_magic() or not.
> * Added EXPORTs for the symbols needed by what's left of swsusp.
> * Added module parameter parsing.
Do you really need to make suspend a module to achieve this? I'll freely
admit it might be nice to save a little bit of memory by modularising it,
and it might save Pavel and I a reboot or two while developing, but for
what you're after, couldn't you just move the call that starts resuming?
> As a side-effect it also allows you to resume from devices that couldn't
> be done before due to the need for user-space setup. Examples are LVM
> and NBD.
LVM can be compiled in, can't it? Does it need to do some setup from an
initrd?
>> prepared for it in userland? In such case you need to add
>> freeze_processes() to resume path.
>
> Is that really necessary if the user-space caller ensures that all
> disk accesses are shut down? After all the loading for resume will
> occur in the initrd before any disk activity has occured.
So long as the initrd doesn't mount any filesystems that were suspended,
you should be okay, IIRC.
Nigel
--
Nigel Cunningham
C/- Westminster Presbyterian Church Belconnen
61 Templeton Street, Cook, ACT 2614, Australia.
+61 (2) 6251 7727 (wk)
next prev parent reply other threads:[~2004-04-23 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-22 12:04 Herbert Xu
2004-04-23 0:56 ` Pavel Machek
2004-04-23 9:38 ` Herbert Xu
2004-04-23 12:21 ` Pavel Machek
2004-04-23 12:27 ` Herbert Xu
2004-04-23 12:56 ` Pavel Machek
2004-04-23 13:28 ` Nigel Cunningham [this message]
2004-04-23 14:30 ` Martin Hermanowski
2004-04-26 12:28 ` Pavel Machek
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=opr6wvqddzruvnp2@laptop-linux.wpcb.org.au \
--to=ncunningham@linuxmail.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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®