RDMA/cxgb4: Keep QP referenced until TID released
authorVipul Pandya <vipul@chelsio.com>
Mon, 7 Jan 2013 13:11:53 +0000 (13:11 +0000)
committerRoland Dreier <roland@purestorage.com>
Thu, 14 Feb 2013 23:51:56 +0000 (15:51 -0800)
commit325abead6cc7ef50572c53b1adc4d2442234b50f
tree59f77611c4b59024635f7c03128e828b2af03192
parent1557967bf921e787f0c9236c2899603d85f44d31
RDMA/cxgb4: Keep QP referenced until TID released

The driver is currently releasing the last ref on the QP too early.
This can cause bus errors due to HW still fetching WRs from the HW
queue.  The fix is to keep a qp ref until we release the HW TID.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h