]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/cm: Make the destroy_id flow more robust
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 09:25:34 +0000 (11:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 17 Mar 2020 20:05:52 +0000 (17:05 -0300)
commit2305d6864aa54c1887563d9096e4b746bc776d04
treeb1a3e48ada37c1dd668d8a146be805948c3b6a0e
parentbede86a39d9dc3387ac00dcb8e1ac221676b2f25
RDMA/cm: Make the destroy_id flow more robust

Too much of the destruction is very carefully sensitive to the state
and various other things. Move more code to the unconditional path and
add several WARN_ONs to check consistency.

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