From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: hugh@veritas.com, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, akpm@osdl.org
Subject: Re: Read/Write migration entries: Implement correct behavior in copy_one_pte
Date: Wed, 19 Apr 2006 12:39:11 +0900 [thread overview]
Message-ID: <20060419123911.3bd22ab3.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0604181823590.9747@schroedinger.engr.sgi.com>
On Tue, 18 Apr 2006 18:27:28 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:
> On Wed, 19 Apr 2006, KAMEZAWA Hiroyuki wrote:
>
> > > Note that this is again only a partial solution. mprotect() also has the
> > > potential of changing the write status to read.
> > yes. in change_pte_range().
> >
> > Note:
> > fork() and mprotect() both requires mm->mmap_sem.
> > So both of them is not problem when migration holds mm->mmap_sem.
> > If we does lazy migration or memory hot removing or allows migration from
> > another process, this will be problem.
>
> Oh. We already allow migration from another process since the page may
> be mapped by multiple mm's. Page migration will then replace the ptes in
> *all* mm_structs that map this page with migration entries.
>
> So we need a fix here.
>
Ah.....yes. sorry.
In my understanding (and grep), read/write protection for anon pages
can be changed under
- fork()
- mprotect()
all are known.
BTW, do we manage page table under move_vma() in right way ?
-Kame
--
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:[~2006-04-19 3:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 18:21 Christoph Lameter
2006-04-19 0:50 ` KAMEZAWA Hiroyuki
2006-04-19 1:27 ` Christoph Lameter
2006-04-19 3:39 ` KAMEZAWA Hiroyuki [this message]
2006-04-20 20:17 ` Christoph Lameter
2006-04-20 20:18 ` Read/Write migration entries: Make mprotect() convert write migration entries to read Christoph Lameter
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=20060419123911.3bd22ab3.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@osdl.org \
--cc=clameter@sgi.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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