From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Changelog: v1: Changed ib_dealloc_xrcd_user() do not iterate over tgt list, because it is expected to be empty. v0: https://lore.kernel.org/lkml/20200621104110.53509-1-leon@xxxxxxxxxx Two small patches to simplify and improve XRC logic. Thanks Maor Gottlieb (2): RDMA: Clean ib_alloc_xrcd() and reuse it to allocate XRC domain RDMA/core: Optimize XRC target lookup drivers/infiniband/core/uverbs_cmd.c | 12 ++--- drivers/infiniband/core/verbs.c | 76 +++++++++++++--------------- drivers/infiniband/hw/mlx5/main.c | 24 +++------ include/rdma/ib_verbs.h | 27 +++++----- 4 files changed, 59 insertions(+), 80 deletions(-) -- 2.26.2