IB/srp: Add periodic reconnect functionality
authorBart Van Assche <bvanassche@acm.org>
Sat, 26 Oct 2013 12:37:17 +0000 (14:37 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:16 +0000 (14:43 -0800)
commita95cadb9dafef41a755b11680529c2b49e7f59bd
tree32a9f6a4e7d45af4788446eef1eb99159307ecad
parent8c64e4531c3c3bedf11d723196270d4a7553db45
IB/srp: Add periodic reconnect functionality

After a transport layer occurred, periodically try to reconnect
to the target until the dev_loss timer expires.  Protect the
callback functions that can be invoked from inside the SCSI EH
against concurrent invocation with srp_reconnect_rport() via the
rport mutex. Change the default dev_loss_tmo from 60s into 600s
to give the reconnect mechanism a chance to kick in.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c