From: Nick Piggin <npiggin@suse.de>
To: Chris Mason <chris.mason@oracle.com>,
Trond Myklebust <trond.myklebust@fys.uio.no>,
Miklos Szeredi <miklos@szeredi.hu>,
holt@sgi.com, linux-nfs@vger.kernel.org,
linux-fsdevel-u79uwXL29TY@public.gmane.org
Subject: Re: Why doesn't zap_pte_range() call page_mkwrite()
Date: Tue, 8 Sep 2009 19:00:02 +0200 [thread overview]
Message-ID: <20090908170002.GD29902@wotan.suse.de> (raw)
In-Reply-To: <20090908163149.GB2975@think>
On Tue, Sep 08, 2009 at 12:31:49PM -0400, Chris Mason wrote:
> On Tue, Sep 08, 2009 at 05:41:32PM +0200, Nick Piggin wrote:
> > It hasn't fallen completely off my radar. fsblock has the same issue
> > (although I've just been ignoring gup writes into fsblock fs for the
> > time being).
>
> Ok, I'll change my detection code a bit then.
OK.
> > I have a basic idea of what to do... It would be nice to change calling
> > convention of get_user_pages and take the page lock. Database people might
> > scream, in which case we could only take the page lock for filesystems that
> > define ->page_mkwrite (so shared mem segments avoid the overhead). Lock
> > ordering might get a bit interesting, but if we can have callers ensure they
> > always submit and release partially fulfilled requirests, then we can always
> > trylock them.
>
> I think everyone will have page_mkwrite eventually, at least everyone
> who the databases will care about ;)
Ah, the problem is not where the DIO write goes, it's where the read
goes :) (ie. the read writes into get_user_pages pages).
So for databases this should typically be shared memory segments I'd
say (tmpfs), or maybe anonymous memory.
WARNING: multiple messages have this Message-ID (diff)
From: Nick Piggin <npiggin@suse.de>
To: Chris Mason <chris.mason@oracle.com>,
Trond Myklebust <trond.myklebust@fys.uio.no>,
Miklos Szeredi <miklos@szeredi.hu>,
holt@sgi.com, linux-nfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: Why doesn't zap_pte_range() call page_mkwrite()
Date: Tue, 8 Sep 2009 19:00:02 +0200 [thread overview]
Message-ID: <20090908170002.GD29902@wotan.suse.de> (raw)
In-Reply-To: <20090908163149.GB2975@think>
On Tue, Sep 08, 2009 at 12:31:49PM -0400, Chris Mason wrote:
> On Tue, Sep 08, 2009 at 05:41:32PM +0200, Nick Piggin wrote:
> > It hasn't fallen completely off my radar. fsblock has the same issue
> > (although I've just been ignoring gup writes into fsblock fs for the
> > time being).
>
> Ok, I'll change my detection code a bit then.
OK.
> > I have a basic idea of what to do... It would be nice to change calling
> > convention of get_user_pages and take the page lock. Database people might
> > scream, in which case we could only take the page lock for filesystems that
> > define ->page_mkwrite (so shared mem segments avoid the overhead). Lock
> > ordering might get a bit interesting, but if we can have callers ensure they
> > always submit and release partially fulfilled requirests, then we can always
> > trylock them.
>
> I think everyone will have page_mkwrite eventually, at least everyone
> who the databases will care about ;)
Ah, the problem is not where the DIO write goes, it's where the read
goes :) (ie. the read writes into get_user_pages pages).
So for databases this should typically be shared memory segments I'd
say (tmpfs), or maybe anonymous memory.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-09-08 17:00 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 18:17 Why doesn't zap_pte_range() call page_mkwrite() Trond Myklebust
2009-04-23 18:17 ` Trond Myklebust
[not found] ` <1240510668.11148.40.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-04-23 19:52 ` Miklos Szeredi
2009-04-23 19:52 ` Miklos Szeredi
[not found] ` <E1Lx4yU-0007A8-Gl-8f8m9JG5TPIdUIPVzhDTVZP2KDSNp7ea@public.gmane.org>
2009-04-23 20:42 ` Trond Myklebust
2009-04-23 20:42 ` Trond Myklebust
2009-04-24 7:15 ` Miklos Szeredi
2009-04-24 7:15 ` Miklos Szeredi
[not found] ` <E1LxFd4-0008Ih-Rd-8f8m9JG5TPIdUIPVzhDTVZP2KDSNp7ea@public.gmane.org>
2009-04-24 7:33 ` Miklos Szeredi
2009-04-24 7:33 ` Miklos Szeredi
2009-04-24 7:33 ` Miklos Szeredi
2009-04-24 12:59 ` Chris Mason
2009-04-24 12:59 ` Chris Mason
2009-04-24 13:31 ` Trond Myklebust
2009-04-24 14:06 ` Trond Myklebust
2009-04-24 16:18 ` Jamie Lokier
2009-04-24 10:41 ` Robin Holt
2009-04-24 10:41 ` Robin Holt
2009-04-24 10:41 ` Robin Holt
2009-04-24 14:52 ` Miklos Szeredi
[not found] ` <E1LxMlO-0000sU-1J-8f8m9JG5TPIdUIPVzhDTVZP2KDSNp7ea@public.gmane.org>
2009-04-24 17:00 ` Trond Myklebust
2009-04-24 17:00 ` Trond Myklebust
2009-04-24 17:00 ` Trond Myklebust
[not found] ` <1240592448.4946.35.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-04-25 5:10 ` Nick Piggin
2009-04-25 5:10 ` Nick Piggin
2009-04-25 5:10 ` Nick Piggin
2009-09-08 15:30 ` Chris Mason
2009-09-08 15:41 ` Nick Piggin
2009-09-08 15:41 ` Nick Piggin
2009-09-08 16:31 ` Chris Mason
2009-09-08 17:00 ` Nick Piggin
2009-09-08 17:00 ` Nick Piggin
2009-09-08 17:00 ` Nick Piggin [this message]
2009-09-08 17:00 ` Nick Piggin
2009-09-08 15:41 ` Nick Piggin
2009-09-08 15:41 ` Nick Piggin
2009-09-09 2:21 ` Christoph Hellwig
2009-09-09 2:21 ` Christoph Hellwig
2009-09-09 5:39 ` Nick Piggin
2009-09-09 5:39 ` Nick Piggin
2009-09-09 5:39 ` Nick Piggin
2009-09-09 2:21 ` Christoph Hellwig
2009-09-09 2:21 ` Christoph Hellwig
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=20090908170002.GD29902@wotan.suse.de \
--to=npiggin@suse.de \
--cc=chris.mason@oracle.com \
--cc=holt@sgi.com \
--cc=linux-fsdevel-u79uwXL29TY@public.gmane.org \
--cc=linux-nfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=trond.myklebust@fys.uio.no \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.