From: "Benjamin C.R. LaHaise" <blah@kvack.org>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: "Eric W. Biederman" <ebiederm+eric@ccr.net>, linux-mm@kvack.org
Subject: Re: [PATCH] dirty pages in memory & co.
Date: Mon, 10 May 1999 17:01:50 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.3.95.990510164506.10344A-100000@as200.spellcast.com> (raw)
In-Reply-To: <14135.13698.659905.454361@dukat.scot.redhat.com>
On Mon, 10 May 1999, Stephen C. Tweedie wrote:
> On 07 May 1999 09:56:00 -0500, ebiederm+eric@ccr.net (Eric W. Biederman)
> said:
>
> > It looks like I need 2 variations on generic_file_write at the
> > moment.
> > 1) for network filesystems that can get away without filling
> > the page on a partial write.
> > 2) for block based filesystems that must fill the page on a
> > partial write because they can't write arbitrary chunks of
> > data.
>
> I'd be very worried by (1): sounds like a partial write followed by a
> read of the full page could show up garbage in the page cache if you do
> this. If NFS skips the page clearing for partial writes, how does it
> avoid returning garbage later?
Hmmm, it shouldn't be a problem if the write blocks the reading of the
page and PG_uptodate isn't set. This conflicts with the current
assumption in generic_file_read that a locked page becoming unlocked
without PG_uptodate being set indicates an error -- the best thing here
is probably to add a PG_error flag and do away with the overloading.
Everything else should be checking PG_uptodate, right?
-ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next prev parent reply other threads:[~1999-05-10 21:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-07 14:56 Eric W. Biederman
1999-05-10 0:57 ` Andrea Arcangeli
1999-05-11 1:06 ` Eric W. Biederman
1999-05-11 11:38 ` Andrea Arcangeli
1999-05-11 18:45 ` Stephen C. Tweedie
1999-05-10 19:37 ` Stephen C. Tweedie
1999-05-10 21:01 ` Benjamin C.R. LaHaise [this message]
1999-05-10 23:43 ` Stephen C. Tweedie
1999-05-11 0:30 ` Eric W. Biederman
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=Pine.LNX.3.95.990510164506.10344A-100000@as200.spellcast.com \
--to=blah@kvack.org \
--cc=ebiederm+eric@ccr.net \
--cc=linux-mm@kvack.org \
--cc=sct@redhat.com \
/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