scsi_transport_srp: Add periodic reconnect support
Add support for periodically reconnecting to an SRP target until the dev_loss timer expires. After the tenth reconnection attempt, gradually slow down subsequent reconnect attempts. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: David Dillow <dillowda@ornl.gov> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:

committed by
Roland Dreier

parent
c1120f8981
commit
8c64e4531c
@@ -145,9 +145,9 @@ static int srp_tmo_set(const char *val, const struct kernel_param *kp)
|
||||
tmo = -1;
|
||||
}
|
||||
if (kp->arg == &srp_fast_io_fail_tmo)
|
||||
res = srp_tmo_valid(tmo, srp_dev_loss_tmo);
|
||||
res = srp_tmo_valid(-1, tmo, srp_dev_loss_tmo);
|
||||
else
|
||||
res = srp_tmo_valid(srp_fast_io_fail_tmo, tmo);
|
||||
res = srp_tmo_valid(-1, srp_fast_io_fail_tmo, tmo);
|
||||
if (res)
|
||||
goto out;
|
||||
*(int *)kp->arg = tmo;
|
||||
|
Reference in New Issue
Block a user