mbox series

[RFC,0/2] mm/gup: introduce vaddr_pin_pages_remote(), FOLL_PIN

Message ID 20190812015044.26176-1-jhubbard@nvidia.com (mailing list archive)
Headers show
Series mm/gup: introduce vaddr_pin_pages_remote(), FOLL_PIN | expand


john.hubbard@gmail.com Aug. 12, 2019, 1:50 a.m. UTC
From: John Hubbard <jhubbard@nvidia.com>


Dave Chinner's head didn't seem to explode...much, when he saw Ira's
series, so I optimistically started taking it from there...this builds on
top of Ira's patchset that he just sent out:

  "[RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002   ;-)" [1]

...which in turn is based on the latest -mmotm.

If Ira's series and this one are both acceptable, then

    a) I'll rework the 41-patch "put_user_pages(): miscellaneous call
       sites" series, and

    b) note that this will take rather longer and will be quite a bit more
       intrusive for each call site (but it's worth it), due to the
       need to plumb the owning struct file* all the way down to the gup()
       call. whew.

[1] https://lore.kernel.org/r/20190809225833.6657-1-ira.weiny@intel.com

[2] https://lore.kernel.org/r/20190807013340.9706-1-jhubbard@nvidia.com

John Hubbard (2):
  mm/gup: introduce FOLL_PIN flag for get_user_pages()
  mm/gup: introduce vaddr_pin_pages_remote()

 drivers/infiniband/core/umem_odp.c | 15 ++++----
 include/linux/mm.h                 |  8 +++++
 mm/gup.c                           | 55 +++++++++++++++++++++++++++++-
 3 files changed, 71 insertions(+), 7 deletions(-)