IB/mlx5: Ranges in implicit ODP MR inherit its write access
authorMoni Shoua <monis@mellanox.com>
Tue, 22 Jan 2019 07:16:08 +0000 (09:16 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 24 Jan 2019 16:22:30 +0000 (09:22 -0700)
commitda6a496a34f2fdcab14362cdc5068aac385e7b47
tree5956a166fe0436d55d51d9fce3f59f0f846fd946
parent8ba0ddd09406e35782259f2ac18187ec77d8c093
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>
drivers/infiniband/core/umem_odp.c
drivers/infiniband/hw/mlx5/odp.c
include/rdma/ib_umem_odp.h