diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2018-02-15 21:20:11 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-02-20 11:57:21 -0500 |
commit | 3b921e3bc4c20af58a663ed238ad57e87493dde2 (patch) | |
tree | 3ec233614135b1a82fa627413dbddf7ff01c262f /drivers/infiniband/hw/bnxt_re/ib_verbs.h | |
parent | 6b4521f5174c26020ae0deb3ef7f2c28557cf445 (diff) | |
download | linux-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.h | 2 |
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 { |