From: Russell King <rmk@arm.linux.org.uk>
To: Hugh Dickins <hugh@veritas.com>
Cc: Jun Sun <jsun@mvista.com>,
linux-kernel@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: Properly implement flush_dcache_page in 2.4? (Or is it possible?)
Date: Sat, 31 May 2003 08:52:48 +0100 [thread overview]
Message-ID: <20030531085248.A19071@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0305310822200.1461-100000@localhost.localdomain>; from hugh@veritas.com on Sat, May 31, 2003 at 08:24:00AM +0100
On Sat, May 31, 2003 at 08:24:00AM +0100, Hugh Dickins wrote:
> On Sat, 31 May 2003, Russell King wrote:
> >
> > I don't see a reason to worry about privately mapped pages on the i_mmap
> > list since they are private, and therefore shouldn't be updated with
> > modifications to other mappings, which I'd have thought would include
> > writes to the file (although I'm not so sure atm.)
>
> Be not so sure. vmas on the private i_mmap list can still contain
> shared pages, which should see writes to the file; but of course their
> already-COWed private pages won't see subsequent writes to the file.
Hmm, looking at the posix spec (do we follow POSIX for mmap?) the
behaviour of MAP_PRIVATE mappings when the underlying file is modified
is unspecified.
I guess missing the cache handling for such mappings fits the POSIX
spec, and is equally as yucky as the current behaviour on CPUs which
don't require these flushes.
(unless someone tells me that POSIX is on drugs, I'm not going to be
that bothered about the MAP_PRIVATE case.)
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next prev parent reply other threads:[~2003-05-31 7:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 17:32 Properly implement flush_dcache_page in 2.4? (Or is it possible?) Jun Sun
2003-05-30 18:09 ` Russell King
2003-05-30 23:00 ` Jun Sun
2003-05-30 23:14 ` Russell King
2003-05-31 0:18 ` Jun Sun
2003-05-31 7:24 ` Hugh Dickins
2003-05-31 7:52 ` Russell King [this message]
2003-05-31 8:33 ` Hugh Dickins
2003-05-31 9:19 ` Russell King
2003-05-31 10:09 ` Hugh Dickins
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=20030531085248.A19071@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=hugh@veritas.com \
--cc=jsun@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ralf@linux-mips.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