[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>
此提交包含在:
Martin K. Petersen
2013-05-10 10:36:04 -04:00
提交者 James Bottomley
父節點 0761df9c4b
當前提交 0816c9251a
共有 5 個檔案被更改,包括 41 行新增4 行删除

查看文件

@@ -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