RDMA/qib: Use GUP longterm for PSM page pining

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

PSM should be prevented from using filesystem DAX pages.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Ira Weiny 2019-01-23 14:02:24 -05:00 committed by Jason Gunthorpe
parent 0e40dc2f70
commit ff0244bb59

View File

@ -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) { 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, num_pages - got,
FOLL_WRITE | FOLL_FORCE, FOLL_WRITE | FOLL_FORCE,
p + got, NULL); p + got, NULL);