diff options
author | James Bottomley <jbottomley@parallels.com> | 2013-10-04 17:42:24 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-10-25 04:58:16 -0400 |
commit | 7e660100d85af860e7ad763202fff717adcdaacd (patch) | |
tree | 851008ff72523b38313ddc4609001904e7d400d9 /drivers/scsi/sd.h | |
parent | d078b5117f18dce57b895df640d9bf2614864829 (diff) |
[SCSI] Derive the FLUSH_TIMEOUT from the basic I/O timeout
Rather than having a separate constant for specifying the timeout on FLUSH
operations, use the basic I/O timeout value that is already configurable
on a per target basis to derive the FLUSH timeout. Looking at the current
definitions of these timeout values, the FLUSH operation is supposed to have
a value that is twice the normal timeout value. This patch preserves this
relationship while leveraging the flexibility of specifying the I/O timeout.
Based on a prior patch by KY Srinivasan <kys@microsoft.com>
Reviewed-by: KY Srinivasan <kys@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index 7a049de22051..26895ff247c5 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h | |||
@@ -13,7 +13,11 @@ | |||
13 | */ | 13 | */ |
14 | #define SD_TIMEOUT (30 * HZ) | 14 | #define SD_TIMEOUT (30 * HZ) |
15 | #define SD_MOD_TIMEOUT (75 * HZ) | 15 | #define SD_MOD_TIMEOUT (75 * HZ) |
16 | #define SD_FLUSH_TIMEOUT (60 * HZ) | 16 | /* |
17 | * Flush timeout is a multiplier over the standard device timeout which is | ||
18 | * user modifiable via sysfs but initially set to SD_TIMEOUT | ||
19 | */ | ||
20 | #define SD_FLUSH_TIMEOUT_MULTIPLIER 2 | ||
17 | #define SD_WRITE_SAME_TIMEOUT (120 * HZ) | 21 | #define SD_WRITE_SAME_TIMEOUT (120 * HZ) |
18 | 22 | ||
19 | /* | 23 | /* |