diff options
author | Bart Van Assche <bvanassche@acm.org> | 2013-10-26 12:35:59 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-11-08 22:43:16 (GMT) |
commit | 8c64e4531c3c3bedf11d723196270d4a7553db45 (patch) | |
tree | 4cdd251177d7b981139f729e658fccdeb1b1ffd9 /drivers/infiniband/ulp | |
parent | c1120f8981fe8ac8dd21092afaf664ba030a76cd (diff) | |
download | linux-8c64e4531c3c3bedf11d723196270d4a7553db45.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 076a3ab..99c893d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -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; |