RDMA/cxgb3: Mark RDMA device with CXIO_ERROR_FATAL when removing
authorSteve Wise <swise@opengridcomputing.com>
Mon, 22 Feb 2010 22:07:22 +0000 (22:07 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:40:30 +0000 (10:40 -0800)
commit68baf495d8e559a82787f595fecc30a43bb89bb7
tree5269f66a202062c078bd4b2590958063b75ea584
parent5279d3ac2d9ca578d04c6f0c760485b0621eb393
RDMA/cxgb3: Mark RDMA device with CXIO_ERROR_FATAL when removing

If cxgb3 calls the iw_cxgb3 t3cclient remove function due to a device
removal event, then the iwch device must be marked with CXIO_ERROR_FATAL
since the device below us is going away.  Otherwise, we can get stuck in
a deadlock as RDMA ULPs try and deallocate objects (like MRs, QPs, etc).
So always mark the device with CXIO_ERROR_FATAL when removing.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch.c