RDMA/uverbs: Check ODP in ib_check_mr_access() as well
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 30 Nov 2020 07:58:36 +0000 (09:58 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Dec 2020 18:06:23 +0000 (14:06 -0400)
commitadac4cb3c1ff5c47c9f47be5d017a0e054176e3c
tree45cefe975243d418e52288bd3604a120d6c48e05
parentb9653b31d7767b7dccc8b24b660301be90449036
RDMA/uverbs: Check ODP in ib_check_mr_access() as well

No reason only one caller checks this. This properly blocks ODP
from the rereg flow if the device does not support ODP.

Link: https://lore.kernel.org/r/20201130075839.278575-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_mr.c
drivers/infiniband/hw/mlx5/devx.c
include/rdma/ib_verbs.h