[PATCH rdma-next 43/50] RDMA/bnxt_re: Rely on common resize‑CQ locking

From: Leon Romanovsky

Date: Fri Feb 13 2026 - 06:11:27 EST


From: Leon Romanovsky <leonro@xxxxxxxxxx>

After introducing a shared mutex to protect against concurrent
resize‑CQ operations, update the bnxt_re driver to use this mechanism.

Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
---
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 int cqe,
rdev = cq->rdev;
dev_attr = rdev->dev_attr;

- 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;

--
2.52.0