projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca60fd1
)
RDMA/bnxt_re: Initialize mutex dbq_lock
author
Kashyap Desai
<kashyap.desai@broadcom.com>
Mon, 14 Aug 2023 17:00:18 +0000
(10:00 -0700)
committer
Leon 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/bnxt_re/main.c
b/drivers/infiniband/hw/bnxt_re/main.c
index
f34ce49
..
061a89b
100644
(file)
--- 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);