From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: David Rientjes <rientjes@google.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>,
Michel Lespinasse <walken@google.com>,
Rik van Riel <riel@redhat.com>
Subject: Re: [PATCH 2/4] mm: rename __mlock_vma_pages_range() to populate_vma_page_range()
Date: Thu, 12 Feb 2015 13:03:18 +0200 [thread overview]
Message-ID: <20150212110318.GA15658@node.dhcp.inet.fi> (raw)
In-Reply-To: <alpine.DEB.2.10.1502111150400.9656@chino.kir.corp.google.com>
On Wed, Feb 11, 2015 at 11:59:33AM -0800, David Rientjes wrote:
> On Wed, 11 Feb 2015, Kirill A. Shutemov wrote:
>
> > __mlock_vma_pages_range() doesn't necessary mlock pages. It depends on
> > vma flags. The same codepath is used for MAP_POPULATE.
> >
>
> s/necessary/necessarily/
>
> > Let's rename __mlock_vma_pages_range() to populate_vma_page_range().
> >
> > This patch also drops mlock_vma_pages_range() references from
> > documentation. It has gone in commit cea10a19b797.
> >
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
>
> I think it makes sense to drop the references about "downgrading"
> mm->mmap_sem in the documentation since populate_vma_page_range() can be
> called with it held either for read or write depending on the context.
I'm not sure what references you're talking about.
Is it about this part:
* If @nonblocking is non-NULL, it must held for read only and may be
* released. If it's released, *@nonblocking will be set to 0.
?
The comment is still true as far as I can say. It comes from up_read() in
__lock_page_or_retry().
--
Kirill A. Shutemov
--
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:[~2015-02-12 11:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 17:12 [PATCH 0/4] Cleanup mm_populate() codepath Kirill A. Shutemov
2015-02-11 17:12 ` [PATCH 1/4] mm: rename FOLL_MLOCK to FOLL_POPULATE Kirill A. Shutemov
2015-02-11 19:59 ` David Rientjes
2015-02-11 17:12 ` [PATCH 2/4] mm: rename __mlock_vma_pages_range() to populate_vma_page_range() Kirill A. Shutemov
2015-02-11 19:59 ` David Rientjes
2015-02-12 11:03 ` Kirill A. Shutemov [this message]
2015-02-12 21:59 ` David Rientjes
2015-02-11 17:12 ` [PATCH 3/4] mm: move gup() -> posix mlock() error conversion out of __mm_populate Kirill A. Shutemov
2015-02-11 19:59 ` David Rientjes
2015-02-11 17:12 ` [PATCH 4/4] mm: move mm_populate()-related code to mm/gup.c Kirill A. Shutemov
2015-02-11 20:00 ` David Rientjes
2015-02-11 17:59 ` [PATCH 0/4] Cleanup mm_populate() codepath Linus Torvalds
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=20150212110318.GA15658@node.dhcp.inet.fi \
--to=kirill@shutemov.name \
--cc=akpm@linux-foundation.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
--cc=rientjes@google.com \
--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