diff options
author | Martin K. Petersen | 2013-05-10 16:36:04 +0200 |
---|---|---|
committer | James Bottomley | 2013-06-04 20:16:24 +0200 |
commit | 0816c9251a7180383bb7811e1a1545f7b78e5374 (patch) | |
tree | 1dffcde9c45f276b264c83511b6168baab4307a4 /include/scsi/scsi.h | |
parent | [SCSI] sd: avoid deadlocks when running under multipath (diff) | |
download | kernel-qcow2-linux-0816c9251a7180383bb7811e1a1545f7b78e5374.tar.gz kernel-qcow2-linux-0816c9251a7180383bb7811e1a1545f7b78e5374.tar.xz kernel-qcow2-linux-0816c9251a7180383bb7811e1a1545f7b78e5374.zip |
[SCSI] Allow error handling timeout to be specified
Introduce eh_timeout which can be used for error handling purposes. This
was previously hardcoded to 10 seconds in the SCSI error handling
code. However, for some fast-fail scenarios it is necessary to be able
to tune this as it can take several iterations (bus device, target, bus,
controller) before we give up.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r-- | include/scsi/scsi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 66216c1acb48..4b87d99e7fa1 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h @@ -10,9 +10,14 @@ #include <linux/types.h> #include <linux/scatterlist.h> +#include <linux/kernel.h> struct scsi_cmnd; +enum scsi_timeouts { + SCSI_DEFAULT_EH_TIMEOUT = 10 * HZ, +}; + /* * The maximum number of SG segments that we will put inside a * scatterlist (unless chaining is used). Should ideally fit inside a |