]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Don't hang threads forever waiting on WR replies
authorHariprasad S <hariprasad@chelsio.com>
Wed, 17 Dec 2014 08:41:03 +0000 (14:11 +0530)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 16:33:15 +0000 (08:33 -0800)
commitd8cf45ae8e0e95da7c28344f4eac6af486a85508
tree1fca0e4d6a3eaef75db04d09c6c22e6101b7c1d2
parent770fb1d0927d2c57d5c90ec8f606b2d655c7dc1c
RDMA/cxgb4: Don't hang threads forever waiting on WR replies

In c4iw_wait_for_reply(), if a FW6_MSG WR reply is not received after
C4IW_WR_TO seconds, fail the WR operation and mark the device as fatally
dead.  Further, if the device is marked fatally dead, then fail the WR
wait immediately.

Also change the timeout to 60 seconds.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/iw_cxgb4.h