archive mirror
 help / color / mirror / Atom feed
From: John Hubbard <>
To: Andrew Morton <>
Cc: "Michael S . Tsirkin" <>,
	"Jason Wang" <>,
	"Vlastimil Babka" <>,
	"Jérôme Glisse" <>, "Jan Kara" <>,
	"Dave Chinner" <>,
	"Souptick Joarder" <>,
	"Jonathan Corbet" <>,,,,,, LKML <>,, "John Hubbard" <>
Subject: [PATCH v2 0/2] vhost, docs: convert to pin_user_pages(), new "case 5"
Date: Sun, 31 May 2020 22:26:31 -0700	[thread overview]
Message-ID: <> (raw)

This is based on Linux 5.7, plus one prerequisite patch:
   "mm/gup: update pin_user_pages.rst for "case 3" (mmu notifiers)" [1]

Changes since v1: removed references to set_page_dirty*(), in response to
Souptick Joarder's review (thanks!).

Cover letter for v1, edited/updated slightly:

It recently became clear to me that there are some get_user_pages*()
callers that don't fit neatly into any of the four cases that are so
far listed in pin_user_pages.rst. vhost.c is one of those.

Add a Case 5 to the documentation, and refer to that when converting

Thanks to Jan Kara for helping me (again) in understanding the
interaction between get_user_pages() and page writeback [2].

Note that I have only compile-tested the vhost.c patch, although that
does also include cross-compiling for a few other arches. Any run-time
testing would be greatly appreciated.


John Hubbard (2):
  docs: mm/gup: pin_user_pages.rst: add a "case 5"
  vhost: convert get_user_pages() --> pin_user_pages()

 Documentation/core-api/pin_user_pages.rst | 18 ++++++++++++++++++
 drivers/vhost/vhost.c                     |  5 ++---
 2 files changed, 20 insertions(+), 3 deletions(-)

base-commit: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162

             reply	other threads:[~2020-06-01  5:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01  5:26 John Hubbard [this message]
2020-06-01  5:26 ` [PATCH v2 1/2] docs: mm/gup: pin_user_pages.rst: add a "case 5" John Hubbard
2020-06-01 11:34   ` Jan Kara
2020-06-01  5:26 ` [PATCH v2 2/2] vhost: convert get_user_pages() --> pin_user_pages() John Hubbard
2020-06-02  6:08   ` Pankaj Gupta

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).