This patch-set, originaly part of Shared PD & MR patch-set, intend to take out the field ucontext from the HW objects ib_pd and ib_mr. v0 -> v1: * Add the patch "RDMA/nldev: ib_pd can be pointed by multiple ib_ucontext" v1 -> v2: * Remove unneeded union in ib_mr v2 -> v3: * Reorder patches so build would not break Thanks, Yuval Shamir Rabinovitch (4): RDMA/uverbs: uobj_get_obj_read should return the ib_uobject RDMA/uverbs: Delete the macro uobj_put_obj_read RDMA/nldev: ib_pd can be pointed by multiple ib_ucontext IB/{core,hw}: ib_pd should not have ib_uobject pointer Yuval Shaia (1): IB/core: ib_mr should not have ib_uobject pointer drivers/infiniband/core/nldev.c | 127 +++++++++- drivers/infiniband/core/uverbs_cmd.c | 219 +++++++++++------- drivers/infiniband/core/uverbs_std_types_mr.c | 1 - drivers/infiniband/core/verbs.c | 4 - drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 - drivers/infiniband/hw/mlx5/main.c | 1 - drivers/infiniband/hw/mthca/mthca_qp.c | 3 +- include/rdma/ib_verbs.h | 6 +- include/rdma/uverbs_std_types.h | 11 +- include/uapi/rdma/rdma_netlink.h | 3 + 10 files changed, 272 insertions(+), 104 deletions(-) -- 2.20.1