RDMA/cma: Delete from restrack DB after successful destroy
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 22 Sep 2020 09:11:02 +0000 (12:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Sep 2020 22:47:34 +0000 (19:47 -0300)
commit60aaeffa367c2ac72cac96edfd10452c613882f5
tree9d5d2f2cca8f6fa63b70f6b66ba8c938d4c0d030
parentf5449e74802c1112dea984aec8af7a33c4516af1
RDMA/cma: Delete from restrack DB after successful destroy

Update the code to have similar destroy pattern like other IB objects.

This change create asymmetry to the rdma_id_private create flow to make
sure that memory is managed by restrack.

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