[SCSI] Allow error handling timeout to be specified
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 May 2013 14:36:04 +0000 (10:36 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 4 Jun 2013 18:16:24 +0000 (11:16 -0700)
commit0816c9251a7180383bb7811e1a1545f7b78e5374
tree1dffcde9c45f276b264c83511b6168baab4307a4
parent0761df9c4b2d966da3af2ac4ee7372afa681ce63
[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>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_sysfs.c
include/scsi/scsi.h
include/scsi/scsi_device.h