RDMA/bnxt_re: Initialize mutex dbq_lock
authorKashyap Desai <kashyap.desai@broadcom.com>
Mon, 14 Aug 2023 17:00:18 +0000 (10:00 -0700)
committerLeon Romanovsky <leon@kernel.org>
Tue, 15 Aug 2023 06:06:06 +0000 (09:06 +0300)
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>
Link: https://lore.kernel.org/r/1692032419-21680-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/main.c

index f34ce49..061a89b 100644 (file)
@@ -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);