summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/bnxt_re/ib_verbs.h
diff options
context:
space:
mode:
authorSelvin Xavier <selvin.xavier@broadcom.com>2018-02-15 21:20:11 -0800
committerDoug Ledford <dledford@redhat.com>2018-02-20 11:57:21 -0500
commit3b921e3bc4c20af58a663ed238ad57e87493dde2 (patch)
tree3ec233614135b1a82fa627413dbddf7ff01c262f /drivers/infiniband/hw/bnxt_re/ib_verbs.h
parent6b4521f5174c26020ae0deb3ef7f2c28557cf445 (diff)
downloadlinux-3b921e3bc4c20af58a663ed238ad57e87493dde2.tar.gz
linux-3b921e3bc4c20af58a663ed238ad57e87493dde2.tar.bz2
linux-3b921e3bc4c20af58a663ed238ad57e87493dde2.zip
RDMA/bnxt_re: Synchronize destroy_qp with poll_cq
Avoid system crash when destroy_qp is invoked while the driver is processing the poll_cq. Synchronize these functions using the cq_lock. Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/bnxt_re/ib_verbs.h')
-rw-r--r--drivers/infiniband/hw/bnxt_re/ib_verbs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.h b/drivers/infiniband/hw/bnxt_re/ib_verbs.h
index 423ebe012f95..b88a48d43a9d 100644
--- a/drivers/infiniband/hw/bnxt_re/ib_verbs.h
+++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.h
@@ -89,6 +89,8 @@ struct bnxt_re_qp {
/* QP1 */
u32 send_psn;
struct ib_ud_header qp1_hdr;
+ struct bnxt_re_cq *scq;
+ struct bnxt_re_cq *rcq;
};
struct bnxt_re_cq {