linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Rik van Riel <riel@redhat.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
	Andrea Arcangeli <aarcange@redhat.com>,
	Michel Lespinasse <walken@google.com>,
	Minchan Kim <minchan.kim@gmail.com>,
	Hugh Dickins <hughd@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: THP, rmap and page_referenced_one()
Date: Wed,  9 Mar 2011 16:11:15 +0900 (JST)	[thread overview]
Message-ID: <20110309161132.0409.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <4D7635DA.9030707@redhat.com>

> On 03/08/2011 06:32 AM, Andrea Arcangeli wrote:
> 
> > Subject: thp: fix page_referenced to modify mapcount/vm_flags only if page is found
> >
> > From: Andrea Arcangeli<aarcange@redhat.com>
> >
> > When vmscan.c calls page_referenced, if an anon page was created before a
> > process forked, rmap will search for it in both of the processes, even though
> > one of them might have since broken COW. If the child process mlocks the vma
> > where the COWed page belongs to, page_referenced() running on the page mapped
> > by the parent would lead to *vm_flags getting VM_LOCKED set erroneously (leading
> > to the references on the parent page being ignored and evicting the parent page
> > too early).
> 
> > Signed-off-by: Andrea Arcangeli<aarcange@redhat.com>
> > Reported-by: Michel Lespinasse<walken@google.com>
> 
> Reviewed-by: Rik van Riel<riel@redhat.com>

Thank you, Andrea.
	Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>




--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2011-03-09  7:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07  6:50 Michel Lespinasse
2011-03-07  7:33 ` KOSAKI Motohiro
2011-03-07  8:35 ` Minchan Kim
2011-03-07 10:35   ` Michel Lespinasse
2011-03-08 11:32     ` Andrea Arcangeli
2011-03-08 12:21       ` Michel Lespinasse
2011-03-08 12:58         ` Andrea Arcangeli
2011-03-08 22:48           ` Minchan Kim
2011-03-09  9:18           ` Johannes Weiner
2011-03-08 13:57       ` Rik van Riel
2011-03-09  7:11         ` KOSAKI Motohiro [this message]

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=20110309161132.0409.A69D9226@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    --cc=minchan.kim@gmail.com \
    --cc=riel@redhat.com \
    --cc=walken@google.com \
    /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