Commit 5f1d43de authored by Dan Williams's avatar Dan Williams Committed by Linus Torvalds

IB/core: disable memory registration of filesystem-dax vmas

Until there is a solution to the dma-to-dax vs truncate problem it is
not safe to allow RDMA to create long standing memory registrations
against filesytem-dax vmas.

Fixes: 3565fce3 ("mm, x86: get_user_pages() for dax mappings")
Signed-off-by: default avatarDan Williams <>
Reported-by: default avatarChristoph Hellwig <>
Reviewed-by: default avatarChristoph Hellwig <>
Acked-by: default avatarJason Gunthorpe <>
Acked-by: default avatarDoug Ledford <>
Cc: Sean Hefty <>
Cc: Hal Rosenstock <>
Cc: Jeff Moyer <>
Cc: Ross Zwisler <>
Cc: Inki Dae <>
Cc: Jan Kara <>
Cc: Joonyoung Shim <>
Cc: Kyungmin Park <>
Cc: Mauro Carvalho Chehab <>
Cc: Mel Gorman <>
Cc: Seung-Woo Kim <>
Cc: Vlastimil Babka <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent b70131de
......@@ -191,7 +191,7 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr,
sg_list_start = umem->sg_head.sgl;
while (npages) {
ret = get_user_pages(cur_base,
ret = get_user_pages_longterm(cur_base,
min_t(unsigned long, npages,
PAGE_SIZE / sizeof (struct page *)),
gup_flags, page_list, vma_list);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment