From: Leon Romanovsky <leonro@xxxxxxxxxx> v1: Added Jason's variant of first patch v0: https://lore.kernel.org/lkml/20201012045600.418271-1-leon@xxxxxxxxxx Leon Romanovsky (2): RDMA/core: Postpone uobject cleanup on failure till FD close RDMA/core: Make FD destroy callback void drivers/infiniband/core/rdma_core.c | 50 +++++++------------ drivers/infiniband/core/uverbs_cmd.c | 5 +- drivers/infiniband/core/uverbs_std_types.c | 18 +++---- .../core/uverbs_std_types_async_fd.c | 5 +- .../core/uverbs_std_types_counters.c | 5 +- drivers/infiniband/core/uverbs_std_types_cq.c | 4 +- drivers/infiniband/core/uverbs_std_types_dm.c | 6 +-- .../core/uverbs_std_types_flow_action.c | 6 +-- drivers/infiniband/core/uverbs_std_types_qp.c | 4 +- .../infiniband/core/uverbs_std_types_srq.c | 4 +- drivers/infiniband/core/uverbs_std_types_wq.c | 4 +- drivers/infiniband/hw/mlx5/devx.c | 14 +++--- drivers/infiniband/hw/mlx5/fs.c | 6 +-- include/rdma/ib_verbs.h | 44 +--------------- include/rdma/uverbs_types.h | 4 +- 15 files changed, 54 insertions(+), 125 deletions(-) -- 2.28.0