RDMA/cxgb4: Couple of abort fixes
authorSteve Wise <swise@opengridcomputing.com>
Tue, 14 Jun 2011 20:59:27 +0000 (20:59 +0000)
committerRoland Dreier <roland@purestorage.com>
Fri, 17 Jun 2011 18:54:56 +0000 (11:54 -0700)
commit8da7e7a55231543b84ac84e93ad5ca9d340773d7
tree4f1b15e211a42879b18353b5f2f8c0d164250c7c
parent301c2c3f039a1f9478f6cbef60f2ccd4da9bd4a1
RDMA/cxgb4: Couple of abort fixes

- fix a race where the driver could end up sending a close_con_req
  after an abort_rpl.  In c4iw_ep_disconnect(), send abort or close
  request with the ep mutex held.

- fix a hang where driver fails to wake up when a connection is reset
  during a normal close.  Wake up any waiters in the interrupt path,
  and correctly cleanup after rdma_fini() failures.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/qp.c