Commit 2bbe1255 authored by Håkon Bugge's avatar Håkon Bugge Committed by Leon Romanovsky
Browse files

RDMA/cm: Rate limit destroy CM ID timeout error message



When the destroy CM ID timeout kicks in, you typically get a storm of
them which creates a log flooding. Hence, change pr_err() to
pr_err_ratelimited() in cm_destroy_id_wait_timeout().

Fixes: 96d9cbe2 ("RDMA/cm: add timeout to cm_destroy_id wait")
Signed-off-by: default avatarHåkon Bugge <haakon.bugge@oracle.com>
Link: https://patch.msgid.link/20250912100525.531102-1-haakon.bugge@oracle.com


Reviewed-by: default avatarZhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent eba165b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1049,7 +1049,7 @@ static noinline void cm_destroy_id_wait_timeout(struct ib_cm_id *cm_id,
	struct cm_id_private *cm_id_priv;

	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
	pr_err("%s: cm_id=%p timed out. state %d -> %d, refcnt=%d\n", __func__,
	pr_err_ratelimited("%s: cm_id=%p timed out. state %d -> %d, refcnt=%d\n", __func__,
			   cm_id, old_state, cm_id->state, refcount_read(&cm_id_priv->refcount));
}