From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2AD430FF2A; Mon, 13 Oct 2025 15:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760369737; cv=none; b=m9ghb3z1g1ospc+y2a2uKchsnBnrG+WdcChaeGZBuSt7MAMs8tir/Igy50vcXArXOJF6waveXpS4qTwJ1IqftuwWrReBCxb9wc98OJqBPxPLrVIrvlerHLovgJ3X5WZbTajcc3qF9c8++w1y6gNAzCuz3b89skrZbUAw1K6iqbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760369737; c=relaxed/simple; bh=XS3h7OoWWNRuC/o+2LGS3o7ur6gZIQ/hVrG22fIQYHw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nSGS0nO3CO5Bv0eVRImWikpyfujK4EckTOpNAz+XRsuQdNoioG6+wn/4QmGPAIxx9VHyAVBtn4Y0vKmNEL/eg7tMetE2/JMUjz9TXSWKmSF5H8JtedvnaO52zeozMOsKNsoEUDufPly3x6b3gbMRukNTJ3AQs5S+jDInsun4J+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kWbIlqAf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kWbIlqAf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 019B1C116D0; Mon, 13 Oct 2025 15:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760369737; bh=XS3h7OoWWNRuC/o+2LGS3o7ur6gZIQ/hVrG22fIQYHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kWbIlqAfUtc/6lHmMW47pUs82C9vcMmvDZ0Dpi2omLPnwzkgERX8r93NQ0MiLXHGj r2SLxQ6MiVbOtOQFVJ5xdG0jW4eDuMrLG/1u4Se/IK1uTK++j9PY1Ipa82KZKKDYIZ DR1pFhLSu3yJZZvbzOp/twCtfpxcjf3/Ciqi4cDE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?H=C3=A5kon=20Bugge?= , Zhu Yanjun , Leon Romanovsky , Sasha Levin Subject: [PATCH 6.17 352/563] RDMA/cm: Rate limit destroy CM ID timeout error message Date: Mon, 13 Oct 2025 16:43:33 +0200 Message-ID: <20251013144424.020793365@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013144411.274874080@linuxfoundation.org> References: <20251013144411.274874080@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Håkon Bugge [ Upstream commit 2bbe1255fcf19c5eb300efb6cb5ad98d66fdae2e ] 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 Link: https://patch.msgid.link/20250912100525.531102-1-haakon.bugge@oracle.com Reviewed-by: Zhu Yanjun Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/core/cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 92678e438ff4d..01bede8ba1055 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -1049,8 +1049,8 @@ 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__, - cm_id, old_state, cm_id->state, refcount_read(&cm_id_priv->refcount)); + 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)); } static void cm_destroy_id(struct ib_cm_id *cm_id, int err) -- 2.51.0