With earlier two series, - [PATCH 0/3] figure uverbs/kernel ib_pd w/o using ib_pd uobject - [PATCH 0/7] convey ib_ucontext via ib_udata Now we can remove ib_pd uobject pointer. Changelog: v1->v2: * Patch 1: Comments from Jason - Use accessor function rdma_udata_context Shamir Rabinovitch (4): IB/{sw,hw}: ib_pd should not be used to get the ib_ucontext IB/uverbs: uobj_get_obj_read must return ib_uobject IB/uverbs: uobj_put_obj_read must not use ib_x uobject pointer IB/verbs: remove ib_pd uobject pointer drivers/infiniband/core/uverbs_cmd.c | 229 ++++++++++++------ drivers/infiniband/core/verbs.c | 1 - drivers/infiniband/hw/bnxt_re/ib_verbs.c | 8 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 5 +- drivers/infiniband/hw/cxgb4/mem.c | 3 +- drivers/infiniband/hw/cxgb4/qp.c | 4 +- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 9 +- drivers/infiniband/hw/mlx4/mr.c | 2 +- drivers/infiniband/hw/mlx4/qp.c | 18 +- drivers/infiniband/hw/mlx4/srq.c | 11 +- drivers/infiniband/hw/mlx5/main.c | 1 - drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 +- drivers/infiniband/hw/mlx5/mr.c | 11 +- drivers/infiniband/hw/mlx5/odp.c | 5 +- drivers/infiniband/hw/mlx5/qp.c | 80 +++--- drivers/infiniband/hw/mlx5/srq.c | 19 +- drivers/infiniband/hw/mthca/mthca_dev.h | 3 +- drivers/infiniband/hw/mthca/mthca_provider.c | 14 +- drivers/infiniband/hw/mthca/mthca_srq.c | 39 +-- drivers/infiniband/hw/nes/nes_verbs.c | 19 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +- drivers/infiniband/hw/qedr/verbs.c | 8 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c | 2 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 9 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 2 +- drivers/infiniband/sw/rdmavt/mr.c | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 7 +- drivers/infiniband/sw/rdmavt/srq.c | 2 +- drivers/infiniband/sw/rxe/rxe_loc.h | 3 +- drivers/infiniband/sw/rxe/rxe_mr.c | 3 +- drivers/infiniband/sw/rxe/rxe_qp.c | 5 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 4 +- include/rdma/ib_verbs.h | 1 - include/rdma/uverbs_std_types.h | 14 +- 35 files changed, 334 insertions(+), 216 deletions(-) -- 2.17.1