Lines Matching refs:fast_io_fail_tmo
84 int srp_tmo_valid(int reconnect_delay, int fast_io_fail_tmo, long dev_loss_tmo) in srp_tmo_valid() argument
86 if (reconnect_delay < 0 && fast_io_fail_tmo < 0 && dev_loss_tmo < 0) in srp_tmo_valid()
90 if (fast_io_fail_tmo > SCSI_DEVICE_BLOCK_MAX_TIMEOUT) in srp_tmo_valid()
92 if (fast_io_fail_tmo < 0 && in srp_tmo_valid()
97 if (fast_io_fail_tmo >= 0 && dev_loss_tmo >= 0 && in srp_tmo_valid()
98 fast_io_fail_tmo >= dev_loss_tmo) in srp_tmo_valid()
230 res = srp_tmo_valid(delay, rport->fast_io_fail_tmo, in store_reconnect_delay()
268 return srp_show_tmo(buf, rport->fast_io_fail_tmo); in show_srp_rport_fast_io_fail_tmo()
277 int fast_io_fail_tmo; in store_srp_rport_fast_io_fail_tmo() local
279 res = srp_parse_tmo(&fast_io_fail_tmo, buf); in store_srp_rport_fast_io_fail_tmo()
282 res = srp_tmo_valid(rport->reconnect_delay, fast_io_fail_tmo, in store_srp_rport_fast_io_fail_tmo()
286 rport->fast_io_fail_tmo = fast_io_fail_tmo; in store_srp_rport_fast_io_fail_tmo()
293 static DEVICE_ATTR(fast_io_fail_tmo, S_IRUGO | S_IWUSR,
317 res = srp_tmo_valid(rport->reconnect_delay, rport->fast_io_fail_tmo, in store_srp_rport_dev_loss_tmo()
464 int delay, fast_io_fail_tmo, dev_loss_tmo; in __srp_start_tl_fail_timers() local
469 fast_io_fail_tmo = rport->fast_io_fail_tmo; in __srp_start_tl_fail_timers()
479 if ((fast_io_fail_tmo >= 0 || dev_loss_tmo >= 0) && in __srp_start_tl_fail_timers()
484 if (fast_io_fail_tmo >= 0) in __srp_start_tl_fail_timers()
487 1UL * fast_io_fail_tmo * HZ); in __srp_start_tl_fail_timers()
611 return rport && rport->fast_io_fail_tmo < 0 && in srp_timed_out()
721 rport->fast_io_fail_tmo = i->f->fast_io_fail_tmo ? in srp_rport_add()
722 *i->f->fast_io_fail_tmo : 15; in srp_rport_add()