]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Synchronize destroy_qp with poll_cq
authorSelvin Xavier <selvin.xavier@broadcom.com>
Fri, 16 Feb 2018 05:20:11 +0000 (21:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Feb 2018 16:57:21 +0000 (11:57 -0500)
commit3f26c7a36d1f0ced9bb9e2aa6f56e647a2b98659
tree3ec233614135b1a82fa627413dbddf7ff01c262f
parent0a87b09c2b7acdf6ef1573863bd535700c7cde64
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>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.h
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.h