linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Hugh Dickins <hugh@veritas.com>
Cc: David Howells <dhowells@redhat.com>,
	Andrew Morton <akpm@osdl.org>,
	torvalds@osdl.org, Christoph Hellwig <hch@infradead.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add notification of page becoming writable to VMA ops
Date: Tue, 25 Oct 2005 08:59:19 +0100	[thread overview]
Message-ID: <1130227159.8169.5.camel@imp.csi.cam.ac.uk> (raw)
In-Reply-To: <Pine.LNX.4.61.0510241938100.6142@goblin.wat.veritas.com>

On Mon, 2005-10-24 at 20:11 +0100, Hugh Dickins wrote:
> On Mon, 24 Oct 2005, David Howells wrote:
> > 
> > The attached patch adds a new VMA operation to notify a filesystem or other
> > driver about the MMU generating a fault because userspace attempted to write
> > to a page mapped through a read-only PTE.
> > 
> > This facility permits the filesystem or driver to:
> > 
> >  (*) Implement storage allocation/reservation on attempted write, and so to
> >      deal with problems such as ENOSPC more gracefully (perhaps by generating
> >      SIGBUS).
> > 
> >  (*) Delay making the page writable until the contents have been written to a
> >      backing cache. This is useful for NFS/AFS when using FS-Cache/CacheFS.
> >      It permits the filesystem to have some guarantee about the state of the
> >      cache.
> 
> I've only given it a quick look, it looks pretty good, but too hastily
> thrown together, without understanding of the intervening changes:

There really is quite a difference between mm/*.c in -mm and Linus
kernel at present.  Is all this planned to be merged as soon as 2.6.14
is out or is -mm just a playground for now with no mainline merge
intentions?

Just asking so I know whether to work against stock kernels or -mm for
the moment...

[snip some corrections I am in no position to comment on at the moment]
> > @@ -1945,7 +1998,7 @@ static int do_file_page(struct mm_struct
> 
> Drop all those changes to do_file_page (which I added), they're no
> longer necessary.  A case appeared which made it clear that we cannot
> rely on resolving this issue for get_user_pages in a single call to
> handle_mm_fault, and that's why the VM_FAULT_WRITE stuff got added. 
> 
> This complication of do_file_page was always ugly, and I'm delighted
> to drop it.  Whereas the call to do_wp_page from do_swap_page is less
> obtrusive and may still be a worthwhile optimization, though I added
> it for the same disgraced reason a year or more back.

Cool, that reduces the size of the patch.  (-:

Best regards,

        Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/


  reply	other threads:[~2005-10-25  7:59 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 14:28 page_mkwrite seems broken Hugh Dickins
2005-10-24 15:16 ` what happened to page_mkwrite? - was: " Anton Altaparmakov
2005-10-24 15:36   ` Hugh Dickins
2005-10-24 15:49     ` Anton Altaparmakov
2005-10-24 15:26 ` David Howells
2005-10-24 15:43   ` Anton Altaparmakov
2005-10-24 16:01     ` Hugh Dickins
2005-10-24 19:38       ` Anton Altaparmakov
2005-10-24 20:31         ` Hugh Dickins
2005-10-24 21:18           ` Anton Altaparmakov
2005-10-24 16:23   ` [PATCH] Add notification of page becoming writable to VMA ops David Howells
2005-10-24 19:11     ` Hugh Dickins
2005-10-25  7:59       ` Anton Altaparmakov [this message]
2005-10-25  8:26         ` Hugh Dickins
2005-10-25  8:49           ` Anton Altaparmakov
2005-10-25  9:49     ` David Howells
2005-10-25  9:55     ` David Howells
2005-10-25 10:12     ` David Howells
2005-10-25 13:18     ` [PATCH] Add notification of page becoming writable to VMA ops [try #2] David Howells
2005-11-30 13:58     ` [PATCH] Add notification of page becoming writable to VMA ops [try #3] David Howells
2005-11-30 14:40       ` Miklos Szeredi
2005-11-30 14:50       ` David Howells
2005-11-30 15:20     ` [PATCH] Add notification of page becoming writable to VMA ops [try #4] David Howells
2006-01-11 12:19     ` [PATCH] Add notification of page becoming writable to VMA ops [try #5] David Howells

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=1130227159.8169.5.camel@imp.csi.cam.ac.uk \
    --to=aia21@cam.ac.uk \
    --cc=akpm@osdl.org \
    --cc=dhowells@redhat.com \
    --cc=hch@infradead.org \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).