mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
0761df9c4b
commit
0816c9251a
5 changed files with 41 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ struct scsi_device {
|
|||
* scsi_devinfo.[hc]. For now used only to
|
||||
* pass settings from slave_alloc to scsi
|
||||
* core. */
|
||||
unsigned int eh_timeout; /* Error handling timeout */
|
||||
unsigned writeable:1;
|
||||
unsigned removable:1;
|
||||
unsigned changed:1; /* Data invalid due to media change */
|
||||
|
|
|
|||
Loading…
Reference in a new issue