Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 96d9cbe2f2ff ("RDMA/cm: add timeout to cm_destroy_id wait")
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Link: https://patch.msgid.link/20250912100525.531102-1-haakon.bugge@oracle.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Håkon Bugge and committed by
Leon Romanovsky
2bbe1255 eba165b2

+2 -2
+2 -2
drivers/infiniband/core/cm.c
··· 1049 1049 struct cm_id_private *cm_id_priv; 1050 1050 1051 1051 cm_id_priv = container_of(cm_id, struct cm_id_private, id); 1052 - pr_err("%s: cm_id=%p timed out. state %d -> %d, refcnt=%d\n", __func__, 1053 - cm_id, old_state, cm_id->state, refcount_read(&cm_id_priv->refcount)); 1052 + pr_err_ratelimited("%s: cm_id=%p timed out. state %d -> %d, refcnt=%d\n", __func__, 1053 + cm_id, old_state, cm_id->state, refcount_read(&cm_id_priv->refcount)); 1054 1054 } 1055 1055 1056 1056 static void cm_destroy_id(struct ib_cm_id *cm_id, int err)