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,
	Michel Lespinasse <walken@google.com>,
	linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Tao Ma <tm@tao.ma>, Hugh Dickins <hughd@google.com>
Subject: Re: [PATCH] mlock: operate on any regions with protection != PROT_NONE
Date: Thu,  3 Feb 2011 09:57:34 +0900 (JST)	[thread overview]
Message-ID: <20110203095757.939F.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <4D48498A.9040606@redhat.com>

> On 01/31/2011 08:03 PM, Michel Lespinasse wrote:
> > As Tao Ma noticed, change 5ecfda0 breaks blktrace. This is because
> > blktrace mmaps a file with PROT_WRITE permissions but without PROT_READ,
> > so my attempt to not unnecessarity break COW during mlock ended up
> > causing mlock to fail with a permission problem.
> >
> > I am proposing to let mlock ignore vma protection in all cases except
> > PROT_NONE. In particular, mlock should not fail for PROT_WRITE regions
> > (as in the blktrace case, which broke at 5ecfda0) or for PROT_EXEC
> > regions (which seem to me like they were always broken).
> >
> > Please review. I am proposing this as a candidate for 2.6.38 inclusion,
> > because of the behavior change with blktrace.
> 
> Acked-by: Rik van Riel <riel@redhat.com>

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-02-03  0:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01  1:03 Michel Lespinasse
2011-02-01  1:08 ` Michel Lespinasse
2011-02-01  5:59 ` Linus Torvalds
2011-02-01  6:36   ` Michel Lespinasse
2011-02-01 17:57   ` Rik van Riel
2011-02-01 17:57 ` Rik van Riel
2011-02-03  0:57   ` 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=20110203095757.939F.A69D9226@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    --cc=riel@redhat.com \
    --cc=tm@tao.ma \
    --cc=torvalds@linux-foundation.org \
    --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