From: Andrew Morton <akpm@osdl.org>
To: Oliver Neukum <oliver@neukum.org>
Cc: alon.barlev@gmail.com, linux-pm@lists.osdl.org,
linux-kernel@vger.kernel.org, psusi@cfl.rr.com,
torvalds@osdl.org, mrmacman_g4@mac.com
Subject: Re: Flames over -- Re: Which is simpler?
Date: Sun, 19 Feb 2006 23:29:26 -0800 [thread overview]
Message-ID: <20060219232926.256665d6.akpm@osdl.org> (raw)
In-Reply-To: <200602200755.57699.oliver@neukum.org>
Oliver Neukum <oliver@neukum.org> wrote:
>
> Am Sonntag, 19. Februar 2006 22:02 schrieb Andrew Morton:
> > Oliver Neukum <oliver@neukum.org> wrote:
> > >
> > > Am Sonntag, 19. Februar 2006 21:02 schrieb Andrew Morton:
> > > > For a), the current kernel behaviour is what we want - make the thing
> > > > appear at a new place in the namespace and in the hierarchy. Then
> > > > userspace can do whatever needs to be done to identify the device, and
> > > > apply some sort of policy decision to the result.
> > >
> > > How? If you have a running user space the connection to the open files
> > > is already severed, as any access in that time window must fail.
> >
> > That's a separate issue, which we haven't discussed yet. We have a device
> > which has gone away and which might come back later on. Presently we will
> > return an I/O error if I/O is attempted in that window. Obviously we'll
> > need to do something different, such as block reads and block or defer writes.
>
> But how do you handle memory management?
> If you simply block writes, the system will stall random tasks laundering
> pages, including those needed to make progress. Even syncing before
> suspend won't help you, as a running user space may dirty pages.
Well of _course_ that will happen. If we have dirty pages we need to
either keep them in memory or lose them. If someone wants to run a massive
memory stresstest, unplug the disks in the middle of it and have the
machine serenely sail along as if nothing happened then they're being
unreasonable.
> And what about the rootfs?
If you disconnect that then everything stops until you reconnect it, provided
all the tools needed to handle the reconnect are in the correct place - if
the system providers got that wrong then the machine is obviously toast.
Your questions boil down to "what if the user is crazy or the implementation
is buggy?". Let's assume neither is true, OK?
next prev parent reply other threads:[~2006-02-20 7:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060217210445.GR3490@openzaurus.ucw.cz>
2006-02-18 21:04 ` Flames over -- Re: Which is simpler? Alan Stern
2006-02-19 0:02 ` Andrew Morton
2006-02-19 6:02 ` Phillip Susi
2006-02-19 6:32 ` Andrew Morton
2006-02-19 16:39 ` Phillip Susi
2006-02-19 16:54 ` Alan Stern
2006-02-19 20:02 ` Andrew Morton
2006-02-19 20:44 ` Oliver Neukum
2006-02-19 21:02 ` Andrew Morton
2006-02-20 6:55 ` Oliver Neukum
2006-02-20 7:29 ` Andrew Morton [this message]
2006-02-20 7:57 ` Andrew Morton
[not found] <200602132327.10475.rjw@sisk.pl>
2006-02-14 19:26 ` Alan Stern
2006-02-14 20:41 ` Rafael J. Wysocki
2006-02-14 21:08 ` Lee Revell
2006-02-15 15:56 ` Alan Stern
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=20060219232926.256665d6.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=alon.barlev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=mrmacman_g4@mac.com \
--cc=oliver@neukum.org \
--cc=psusi@cfl.rr.com \
--cc=torvalds@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