]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cm: Pass the cm_id_private into cm_cleanup_timewait
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 07:46:56 +0000 (10:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 May 2020 00:32:53 +0000 (21:32 -0300)
commit9767a27e1aeb462812e9f054c313180eeff0b5c3
treea86d59eeeeb16d94118d0d65e8f799e09dbef201
parente83f195aa45c1ffd73b3a950a887e41c260cf194
RDMA/cm: Pass the cm_id_private into cm_cleanup_timewait

Also rename it to cm_remove_remote(). This function now removes the
tracking of the remote ID/QPN in the redblack trees from a cm_id_private.

Replace a open-coded version with a call. The open coded version was
deleting only the remote_id, however at this call site the qpn can not
have been in the RB tree either, so the cm_remove_remote() will do the
same.

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