Commit ff0244bb authored by Ira Weiny's avatar Ira Weiny Committed by Jason Gunthorpe
Browse files

RDMA/qib: Use GUP longterm for PSM page pining



Similar to the core change commit 5f1d43de ("IB/core: disable memory
registration of filesystem-dax vmas")

PSM should be prevented from using filesystem DAX pages.

Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 0e40dc2f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ static int __qib_get_user_pages(unsigned long start_page, size_t num_pages,
	}

	for (got = 0; got < num_pages; got += ret) {
		ret = get_user_pages(start_page + got * PAGE_SIZE,
		ret = get_user_pages_longterm(start_page + got * PAGE_SIZE,
					      num_pages - got,
					      FOLL_WRITE | FOLL_FORCE,
					      p + got, NULL);