RDMA/cm: Print the old state when cm_destroy_id gets timeout
authorMark Zhang <markzhang@nvidia.com>
Fri, 22 Mar 2024 11:20:49 +0000 (13:20 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 1 Apr 2024 12:16:36 +0000 (15:16 +0300)
commitb68e1acb5834ed1a2ad42d9d002815a8bae7c0b6
tree16124e9f6934defca837e3eacdbe8bcb4e04e3e1
parent481047d7e8391d3842ae59025806531cdad710d9
RDMA/cm: Print the old state when cm_destroy_id gets timeout

The old state is helpful for debugging, as the current state is always
IB_CM_IDLE when timeout happens.

Fixes: 96d9cbe2f2ff ("RDMA/cm: add timeout to cm_destroy_id wait")
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/20240322112049.2022994-1-markzhang@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/cm.c