scsi_transport_srp: Add transport layer error handling
authorBart Van Assche <bvanassche@acm.org>
Sat, 26 Oct 2013 12:33:30 +0000 (14:33 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:15 +0000 (14:43 -0800)
commit29c17324803c8a3bb5b2b69309e43571164cc4de
tree93279b89d0b16228eccd2dc5f1d2b29c17c4e3af
parent9dd69a600a680fab1c9235a644c886d8d6a2da2a
scsi_transport_srp: Add transport layer error handling

Add the necessary functions in the SRP transport module to allow an
SRP initiator driver to implement transport layer error handling
similar to the functionality already provided by the FC transport
layer. This includes:

- Support for implementing fast_io_fail_tmo, the time that should
  elapse after having detected a transport layer problem and
  before failing I/O.
- Support for implementing dev_loss_tmo, the time that should
  elapse after having detected a transport layer problem and
  before removing a remote port.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Documentation/ABI/stable/sysfs-transport-srp
drivers/scsi/scsi_transport_srp.c
include/scsi/scsi_transport_srp.h