aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/rdma/ib_umem_odp.h
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2019-01-22 09:16:08 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-01-24 09:22:30 -0700
commitda6a496a34f2fdcab14362cdc5068aac385e7b47 (patch)
tree5956a166fe0436d55d51d9fce3f59f0f846fd946 /include/rdma/ib_umem_odp.h
parentRDMA/iw_cxgb4: Drop __GFP_NOFAIL (diff)
downloadwireguard-linux-da6a496a34f2fdcab14362cdc5068aac385e7b47.tar.xz
wireguard-linux-da6a496a34f2fdcab14362cdc5068aac385e7b47.zip
IB/mlx5: Ranges in implicit ODP MR inherit its write access
A sub-range in ODP implicit MR should take its write permission from the MR and not be set always to allow. Fixes: d07d1d70ce1a ("IB/umem: Update on demand page (ODP) support") Signed-off-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_umem_odp.h')
-rw-r--r--include/rdma/ib_umem_odp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_umem_odp.h b/include/rdma/ib_umem_odp.h
index d3725cf13ecd..d0024f53626e 100644
--- a/include/rdma/ib_umem_odp.h
+++ b/include/rdma/ib_umem_odp.h
@@ -116,7 +116,7 @@ struct ib_ucontext_per_mm {
};
int ib_umem_odp_get(struct ib_umem_odp *umem_odp, int access);
-struct ib_umem_odp *ib_alloc_odp_umem(struct ib_ucontext_per_mm *per_mm,
+struct ib_umem_odp *ib_alloc_odp_umem(struct ib_umem_odp *root_umem,
unsigned long addr, size_t size);
void ib_umem_odp_release(struct ib_umem_odp *umem_odp);