mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
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:
parent
0e40dc2f70
commit
ff0244bb59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user