Skip to content

mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages (v2)

Vivek Kasireddy dri-devel linux-mm llvm oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Updated the first patch to include review feedback from David and Jason. The main change in this series is the allocation of page in the case of hugetlbfs if it is not found in the page cache.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages (v2)include/linux/mm.h mm/gup.c+101 -04 replies
2/3udmabuf: Pin the pages using pin_user_pages_fd() API (v2)drivers/dma-buf/udmabuf.c+60 -210 replies
3/3selftests/dma-buf/udmabuf: Add tests to verify data after page migrationtools/testing/selftests/drivers/dma-buf/udmabuf.c+147 -40 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMike KravetzJason GunthorpeDavid Hildenbrand
1/3R-b R-b R-b
2/3
3/3Based-on-patch-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file pages (v2)

The first patch introduces pin_user_pages_fd() API and the second patch shows how the udmabuf driver can use it to longterm-pin the the pages. The last patch adds two new udmabuf selftests to verify data coherency after page migration.

v2:
- Updated the first patch to include review feedback from David and Jason. The main change in this series is the allocation of page in the case of hugetlbfs if it is not found in the page cache.

Cc David Hildenbrand <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Peter Xu <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Cc Dongwon Kim <[email protected]>
Cc Junxiao Chang <[email protected]>

Vivek Kasireddy (3):
mm/gup: Introduce pin_user_pages_fd() for pinning shmem/hugetlbfs file

    pages (v2)

udmabuf: Pin the pages using pin_user_pages_fd() API (v2) selftests/dma-buf/udmabuf: Add tests to verify data after page
migration

 drivers/dma-buf/udmabuf.c                     |  81 +++++++---
 include/linux/mm.h                            |   2 +
 mm/gup.c                                      |  99 ++++++++++++
 .../selftests/drivers/dma-buf/udmabuf.c       | 151 +++++++++++++++++-
 4 files changed, 308 insertions(+), 25 deletions(-)
Signature · 1 line
2.39.2