IB/srp: Retry stale connections
authorDavid Dillow <dillowda@ornl.gov>
Tue, 8 Jan 2008 22:08:52 +0000 (17:08 -0500)
committerRoland Dreier <rolandd@cisco.com>
Tue, 5 Feb 2008 04:20:43 +0000 (20:20 -0800)
commit9fe4bcf45ece0b0081031edaaa41581c85ef7049
treeb4d7cd3aff19fe8802d71d031d79340962164434
parent893da75956ab48545e8732b46e1cf4350bd25f9c
IB/srp: Retry stale connections

When a host just goes away (crash, power loss, etc.) without tearing
down its IB connections, it can get stale connection errors when it
tries to reconnect to targets upon rebooting.  Retrying the connection
a few times will prevent sysadmins from playing the "which disk(s)
went missing?" game.

This would have made things slightly quicker when tracking down some
of the recent bugs, but it also helps quite a bit when you've got a
large number of targets hanging off a wedged server.

Signed-off-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h