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 56077330B0C; Fri, 17 Oct 2025 15:50:01 +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=1760716201; cv=none; b=mBYlXcqqoKv8kL0+N7LQE4/4rdtYq8R5Z3NMrAfIbtfN9J1qSlYRBM/wZR6h9X37etDfJSHku/q3HqKM+oIfESeJN6h1H1bxTaH2nvn/44Xc9RjIS//whbnZS0Kz6J+ElvBZcMFssO6e4FXZFUg0OXPmMmslcuSPmnl+po/zLDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760716201; c=relaxed/simple; bh=J2NYzIGkNnCekAoEWsR9yadPdFTadGAb/6cihk5/IUs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RcjNpgcymN01Qf6xdDMIqVX4vDofp0DruunRkMcm0gY3nTvij9BPsUi0C7l4VydBPLLP1Bp5wzN/OwbihYG2JRhrEwZzfBRXe828ooNjH3ROStDP6wDueru0ihzEa2M7tmFYSQEAVTX4PapAy80M94/HWAU4AY472WMq9J4fp5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YKS6eIKm; 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="YKS6eIKm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3D4DC4CEE7; Fri, 17 Oct 2025 15:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760716201; bh=J2NYzIGkNnCekAoEWsR9yadPdFTadGAb/6cihk5/IUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YKS6eIKmF7ETcBpEpU48VUR/N91Q2C7FZG6LGBkQcFG6vJrjQxaqRDjQX17kkgsHg 4BLZWZQY0jHWsafmbnmGJ/AoAqkhvlBhB5nkOtKJoRQmz96zS0HmMClaf3203VByOa 4B0HHWUzcSxGhpCUlrxb8W+oTc2YYlO34/aWUaZ8= 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 5.15 076/276] RDMA/cm: Rate limit destroy CM ID timeout error message Date: Fri, 17 Oct 2025 16:52:49 +0200 Message-ID: <20251017145145.261699840@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145142.382145055@linuxfoundation.org> References: <20251017145142.382145055@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 5.15-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 96e00e86ebbf6..5dc864cec9f83 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -1039,8 +1039,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