aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/stable
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2013-10-26 08:33:30 -0400
committerRoland Dreier <roland@purestorage.com>2013-11-08 17:43:15 -0500
commit29c17324803c8a3bb5b2b69309e43571164cc4de (patch)
tree93279b89d0b16228eccd2dc5f1d2b29c17c4e3af /Documentation/ABI/stable
parent9dd69a600a680fab1c9235a644c886d8d6a2da2a (diff)
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>
Diffstat (limited to 'Documentation/ABI/stable')
-rw-r--r--Documentation/ABI/stable/sysfs-transport-srp31
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/ABI/stable/sysfs-transport-srp b/Documentation/ABI/stable/sysfs-transport-srp
index b36fb0dc13c8..8b6acc775b71 100644
--- a/Documentation/ABI/stable/sysfs-transport-srp
+++ b/Documentation/ABI/stable/sysfs-transport-srp
@@ -5,6 +5,24 @@ Contact: linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org
5Description: Instructs an SRP initiator to disconnect from a target and to 5Description: Instructs an SRP initiator to disconnect from a target and to
6 remove all LUNs imported from that target. 6 remove all LUNs imported from that target.
7 7
8What: /sys/class/srp_remote_ports/port-<h>:<n>/dev_loss_tmo
9Date: February 1, 2014
10KernelVersion: 3.13
11Contact: linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org
12Description: Number of seconds the SCSI layer will wait after a transport
13 layer error has been observed before removing a target port.
14 Zero means immediate removal. Setting this attribute to "off"
15 will disable the dev_loss timer.
16
17What: /sys/class/srp_remote_ports/port-<h>:<n>/fast_io_fail_tmo
18Date: February 1, 2014
19KernelVersion: 3.13
20Contact: linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org
21Description: Number of seconds the SCSI layer will wait after a transport
22 layer error has been observed before failing I/O. Zero means
23 failing I/O immediately. Setting this attribute to "off" will
24 disable the fast_io_fail timer.
25
8What: /sys/class/srp_remote_ports/port-<h>:<n>/port_id 26What: /sys/class/srp_remote_ports/port-<h>:<n>/port_id
9Date: June 27, 2007 27Date: June 27, 2007
10KernelVersion: 2.6.24 28KernelVersion: 2.6.24
@@ -17,3 +35,16 @@ Date: June 27, 2007
17KernelVersion: 2.6.24 35KernelVersion: 2.6.24
18Contact: linux-scsi@vger.kernel.org 36Contact: linux-scsi@vger.kernel.org
19Description: Role of the remote port. Either "SRP Initiator" or "SRP Target". 37Description: Role of the remote port. Either "SRP Initiator" or "SRP Target".
38
39What: /sys/class/srp_remote_ports/port-<h>:<n>/state
40Date: February 1, 2014
41KernelVersion: 3.13
42Contact: linux-scsi@vger.kernel.org, linux-rdma@vger.kernel.org
43Description: State of the transport layer used for communication with the
44 remote port. "running" if the transport layer is operational;
45 "blocked" if a transport layer error has been encountered but
46 the fast_io_fail_tmo timer has not yet fired; "fail-fast"
47 after the fast_io_fail_tmo timer has fired and before the
48 "dev_loss_tmo" timer has fired; "lost" after the
49 "dev_loss_tmo" timer has fired and before the port is finally
50 removed.