From nobody Thu Apr 2 22:12:31 2026 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 B1FBE35CB84; Fri, 13 Feb 2026 11:01:34 +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=1770980494; cv=none; b=PDRdjKutbF0ldBvVF/P22G2VXg0d9/LlaTIgppq9DQg8Vp4lAf5waHJpqUQ+K+9CunBWZ+gpIIXUIyYv3Zg+UhjlxDpidaGe1GW+u+Oe7mkckT570RoPj0OPN6I6BMJTsUoOrwJNcKCNQf79CZDjjUzwVbuO2S/aVFJMbSyZaXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770980494; c=relaxed/simple; bh=Vcw4qS4HcCegwVEjRz1foBtu5FJSEtW6cquOv2B9Bec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mc6nTux0+W2GoukMFi2BKbjf2FBZQVUrd5ThVywK7azTmDytxZftqdJexGJgGOC0VTLqoiU0ixZQMjAdTmR4Jtz7pDJfhJTc/eWt7MvtFnGZmJBWEbO1ey5z6c/Mzjytw9LGKCrevV/5FmsQnZr6ErBKs1Tb9HoAr/LAyk3rFC4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EDUYAqSj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EDUYAqSj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE510C116C6; Fri, 13 Feb 2026 11:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770980494; bh=Vcw4qS4HcCegwVEjRz1foBtu5FJSEtW6cquOv2B9Bec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EDUYAqSjl4myEueiU9arG5uvvxJ9UJppcb1V4yeXECSPL6tuigtIew/E0xfm+qv7l aHt4WBcw4JT1LApSVyg9pO2XcCgLtEEJd7You/7hFB2be7n6bkR4IP1/fK7tFI0vaC Zg3ENT8jeckeVOQB/0cS3hUGQx8g7D16lHRKr5tX4kigWLc8MuHx8/MFDwAfGrZP1U qazLntwiz0/fttKeiXhs3UZZ4PlzSy+LfC3pNRP0Bap20VeGV6R4kWdJFBeeddVik8 2G0A82glTpbHvAQIZXWkQQzVXptRsgll8Nhe2K8GmaseuS5LsEN0AvfwxLPjFIQuQR SkTNaKP3CXUTg== From: Leon Romanovsky To: Jason Gunthorpe , Leon Romanovsky , Selvin Xavier , Kalesh AP , Potnuri Bharat Teja , Michael Margolin , Gal Pressman , Yossi Leybovich , Cheng Xu , Kai Shen , Chengchang Tang , Junxian Huang , Abhijit Gangurde , Allen Hubbe , Krzysztof Czurylo , Tatyana Nikolova , Long Li , Konstantin Taranov , Yishai Hadas , Michal Kalderon , Bryan Tan , Vishnu Dasa , Broadcom internal kernel review list , Christian Benvenuti , Nelson Escobar , Dennis Dalessandro , Bernard Metzler , Zhu Yanjun Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: =?utf-8?q?=5BPATCH_rdma-next_43/50=5D_RDMA/bnxt=5Fre=3A_Rely_on_?= =?utf-8?q?common_resize=E2=80=91CQ_locking?= Date: Fri, 13 Feb 2026 12:58:19 +0200 Message-ID: <20260213-refactor-umem-v1-43-f3be85847922@nvidia.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> References: <20260213-refactor-umem-v1-0-f3be85847922@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.15-dev-47773 Content-Transfer-Encoding: quoted-printable From: Leon Romanovsky After introducing a shared mutex to protect against concurrent resize=E2=80=91CQ operations, update the bnxt_re driver to use this mechani= sm. Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/= hw/bnxt_re/ib_verbs.c index 2aecfbbb7eaf..d544a4fb1e96 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -3326,12 +3326,6 @@ int bnxt_re_resize_cq(struct ib_cq *ibcq, unsigned i= nt cqe, rdev =3D cq->rdev; dev_attr =3D rdev->dev_attr; =20 - if (cq->resize_umem) { - ibdev_err(&rdev->ibdev, "Resize CQ %#x failed - Busy", - cq->qplib_cq.id); - return -EBUSY; - } - /* Check the requested cq depth out of supported depth */ if (cqe > dev_attr->max_cq_wqes) return -EINVAL; --=20 2.52.0