OSDN Git Service

RDMA/ucma: Consolidate the two destroy flows
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Aug 2020 12:05:15 +0000 (15:05 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 27 Aug 2020 11:38:14 +0000 (08:38 -0300)
commitc07e12d8e9b4b6e532f52ecc89e52d10f3f8e8f5
tree564cb0eccf525ac586e7c719cc369d03be79e658
parent07e266a7753d952978f317aa2b206b4da4769567
RDMA/ucma: Consolidate the two destroy flows

ucma_close() is open coding the tail end of ucma_destroy_id(), consolidate
this duplicated code into a function.

Link: https://lore.kernel.org/r/20200818120526.702120-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/ucma.c