From: Robin Holt <holt-sJ/iWh9BUns@public.gmane.org>
To: Christoph Lameter <clameter-sJ/iWh9BUns@public.gmane.org>
Cc: Andrea Arcangeli <andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org>,
Peter Zijlstra
<a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org>,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
steiner-sJ/iWh9BUns@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>,
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
daniel.blueman-xqY44rlHlBpWk0Htik3J/w@public.gmane.org,
Robin Holt <holt-sJ/iWh9BUns@public.gmane.org>
Subject: Re: [patch 2/3] mmu_notifier: Callbacks to invalidate address ranges
Date: Fri, 1 Feb 2008 04:32:21 -0600 [thread overview]
Message-ID: <20080201103221.GH26420@sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0801312042500.20675-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
On Thu, Jan 31, 2008 at 08:43:58PM -0800, Christoph Lameter wrote:
> On Thu, 31 Jan 2008, Robin Holt wrote:
>
> > > Index: linux-2.6/mm/memory.c
> > ...
> > > @@ -1668,6 +1678,7 @@ gotten:
> > > page_cache_release(old_page);
> > > unlock:
> > > pte_unmap_unlock(page_table, ptl);
> > > + mmu_notifier(invalidate_range_end, mm, 0);
> >
> > I think we can get an _end call without the _begin call before it.
>
> If that would be true then also the pte would have been left locked.
>
> We always hit unlock. Maybe I just do not see it?
Maybe I haven't looked closely enough, but let's start with some common
assumptions. Looking at do_wp_page from 2.6.24 (I believe that is what
my work area is based upon). On line 1559, the function begins being
declared.
On lines 1614 and 1630, we do "goto unlock" where the _end callout is
soon made. The _begin callout does not come until after those branches
have been taken (occurs on line 1648).
Thanks,
Robin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-02-01 10:32 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 4:57 [patch 0/3] [RFC] MMU Notifiers V4 Christoph Lameter
2008-01-31 4:57 ` [patch 1/3] mmu_notifier: Core code Christoph Lameter
[not found] ` <20080131045812.553249048-sJ/iWh9BUns@public.gmane.org>
2008-02-01 1:56 ` Jack Steiner
[not found] ` <20080201015611.GA15893-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:24 ` Robin Holt
[not found] ` <20080201022444.GA26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:37 ` Jack Steiner
[not found] ` <20080201023659.GA30057-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:39 ` Christoph Lameter
2008-02-01 2:31 ` Robin Holt
[not found] ` <20080201023113.GB26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:39 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311838070.26594-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 2:47 ` Robin Holt
[not found] ` <20080201024742.GD26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 3:01 ` Christoph Lameter
2008-02-01 3:01 ` Jack Steiner
[not found] ` <20080201030104.GA29417-sJ/iWh9BUns@public.gmane.org>
2008-02-01 3:03 ` Christoph Lameter
2008-02-01 3:52 ` Robin Holt
[not found] ` <20080201035249.GE26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 3:58 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311957250.17649-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 4:15 ` Robin Holt
2008-02-03 1:33 ` Andrea Arcangeli
[not found] ` <20080203013323.GA7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-04 19:13 ` Christoph Lameter
2008-01-31 4:57 ` [patch 2/3] mmu_notifier: Callbacks to invalidate address ranges Christoph Lameter
[not found] ` <20080131045812.785269387-sJ/iWh9BUns@public.gmane.org>
2008-01-31 12:31 ` Andrea Arcangeli
[not found] ` <20080131123118.GK7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-01-31 20:07 ` Christoph Lameter
2008-01-31 22:01 ` mmu_notifier: close hole in fork Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311355260.27804-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-01-31 22:16 ` mmu_notifier: reduce size of mm_struct if !CONFIG_MMU_NOTIFIER Christoph Lameter
2008-01-31 22:21 ` mmu_notifier: Move mmu_notifier_release up to get rid of the invalidat_all() callback Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311421110.22290-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 0:13 ` Andrea Arcangeli
[not found] ` <20080201001355.GU7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-01 1:52 ` Christoph Lameter
2008-02-01 1:57 ` mmu_notifier: invalidate_range for move_page_tables Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311752200.24427-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 2:38 ` Robin Holt
[not found] ` <20080201023815.GC26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:41 ` Christoph Lameter
2008-02-01 0:01 ` mmu_notifier: close hole in fork Andrea Arcangeli
[not found] ` <20080201000158.GT7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-01 1:48 ` Christoph Lameter
2008-02-01 4:24 ` [patch 2/3] mmu_notifier: Callbacks to invalidate address ranges Robin Holt
[not found] ` <20080201042408.GG26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 4:43 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801312042500.20675-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 10:32 ` Robin Holt [this message]
2008-02-01 10:37 ` Robin Holt
[not found] ` <20080201103221.GH26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 19:13 ` Christoph Lameter
2008-01-31 4:57 ` [patch 3/3] mmu_notifier: invalidate_page callbacks Christoph Lameter
[not found] ` <20080131045750.855008281-sJ/iWh9BUns@public.gmane.org>
2008-01-31 17:18 ` [PATCH] mmu notifiers #v5 Andrea Arcangeli
[not found] ` <20080131171806.GN7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-01-31 20:18 ` Christoph Lameter
2008-01-31 23:09 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311508080.23624-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-01-31 23:41 ` Andrea Arcangeli
[not found] ` <20080131234101.GS7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-01 1:44 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311738570.24297-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 12:09 ` Andrea Arcangeli
[not found] ` <20080201120955.GX7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-01 19:23 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0802011118060.18163-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-03 2:17 ` Andrea Arcangeli
[not found] ` <20080203021704.GC7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-03 3:14 ` Jack Steiner
[not found] ` <20080203031457.GA16127-sJ/iWh9BUns@public.gmane.org>
2008-02-03 3:33 ` Andrea Arcangeli
2008-02-04 19:09 ` Christoph Lameter
2008-02-05 5:25 ` Andrea Arcangeli
[not found] ` <20080205052525.GD7441-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-05 6:11 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0802042206200.6739-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-05 18:08 ` Andrea Arcangeli
[not found] ` <20080205180802.GE7441-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-05 18:17 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0802051013440.11705-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-05 20:55 ` Andrea Arcangeli
[not found] ` <20080205205519.GF7441-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-05 22:06 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0802051400200.14665-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-05 22:12 ` Robin Holt
2008-02-05 22:26 ` Andrea Arcangeli
[not found] ` <20080205222657.GG7441-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-05 23:10 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0802051504450.16261-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-05 23:47 ` Andrea Arcangeli
[not found] ` <20080205234742.GI7441-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-06 0:04 ` Christoph Lameter
2008-01-31 23:28 ` Andrea Arcangeli
[not found] ` <20080131232842.GQ7185-lysg2Xt5kKMAvxtiuMwx3w@public.gmane.org>
2008-02-01 1:37 ` Christoph Lameter
[not found] ` <Pine.LNX.4.64.0801311733140.24297-RYO/mD75kfhx2SFC9UQUAuF7EQX82lMiAL8bYrjMMd8@public.gmane.org>
2008-02-01 2:23 ` Robin Holt
[not found] ` <20080201022321.GZ26420-sJ/iWh9BUns@public.gmane.org>
2008-02-01 2:26 ` Christoph Lameter
2008-02-01 12:00 ` Andrea Arcangeli
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=20080201103221.GH26420@sgi.com \
--to=holt-sj/iwh9buns@public.gmane.org \
--cc=a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org \
--cc=andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=clameter-sJ/iWh9BUns@public.gmane.org \
--cc=daniel.blueman-xqY44rlHlBpWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=steiner-sJ/iWh9BUns@public.gmane.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