Skip to content

Add gup fast + longterm and use it in HFI1

[email protected] ceph-devel dri-devel kvm kvm-ppc linux-fbdev linux-fpga linux-media linux-mips linux-mm linux-rdma linux-s390 linux-scsi linux-sh linuxppc-dev lkml netdev sparclinux xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/gup: Change "write" parameter to flagsmm/gup.c+26 -260 replies
2/3mm/gup: Introduce get_user_pages_fast_longterm()include/linux/mm.h mm/gup.c+88 -2212 replies
3/3IB/HFI1: Use new get_user_pages_fast_longterm()drivers/infiniband/hw/hfi1/user_pages.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Add gup fast + longterm and use it in HFI1

From: Ira Weiny <[email protected]>

NOTE: This series depends on my clean up patch to remove the write parameter from gup_fast_permitted()[1]

HFI1 uses get_user_pages_fast() due to it performance advantages. Like RDMA, HFI1 pages can be held for a significant time. But get_user_pages_fast() does not protect against mapping of FS DAX pages.

Introduce a get_user_pages_fast_longterm() which retains the performance while also adding the FS DAX checks. XDP has also shown interest in using this functionality.[2]

[1] https://lkml.org/lkml/2019/2/11/237
[2] https://lkml.org/lkml/2019/2/11/1789

Ira Weiny (3):
mm/gup: Change "write" parameter to flags mm/gup: Introduce get_user_pages_fast_longterm() IB/HFI1: Use new get_user_pages_fast_longterm()

 drivers/infiniband/hw/hfi1/user_pages.c |   2 +-
 include/linux/mm.h                      |   8 ++
 mm/gup.c                                | 152 ++++++++++++++++--------
 3 files changed, 114 insertions(+), 48 deletions(-)
Signature · 1 line
2.20.1