diff mbox series

[for-next,v2,1/2] RDMA/bnxt_re: Initialize mutex dbq_lock

Message ID 1692475767-2626-1-git-send-email-selvin.xavier@broadcom.com (mailing list archive)
State Accepted
Commit 811e0ce9e6499a0c71c359a2b7e2bd6a5ed8e58f
Headers show
Series [for-next,v2,1/2] RDMA/bnxt_re: Initialize mutex dbq_lock | expand

Commit Message

Selvin Xavier Aug. 19, 2023, 8:09 p.m. UTC
From: Kashyap Desai <kashyap.desai@broadcom.com>

Fix the missing dbq_lock mutex initialization

Fixes: 2ad4e6303a6d ("RDMA/bnxt_re: Implement doorbell pacing algorithm")
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
 drivers/infiniband/hw/bnxt_re/main.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
index f34ce49..061a89b 100644
--- a/drivers/infiniband/hw/bnxt_re/main.c
+++ b/drivers/infiniband/hw/bnxt_re/main.c
@@ -920,6 +920,7 @@  static struct bnxt_re_dev *bnxt_re_dev_add(struct bnxt_aux_priv *aux_priv,
 	rdev->id = rdev->en_dev->pdev->devfn;
 	INIT_LIST_HEAD(&rdev->qp_list);
 	mutex_init(&rdev->qp_lock);
+	mutex_init(&rdev->pacing.dbq_lock);
 	atomic_set(&rdev->stats.res.qp_count, 0);
 	atomic_set(&rdev->stats.res.cq_count, 0);
 	atomic_set(&rdev->stats.res.srq_count, 0);