]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] Derive the FLUSH_TIMEOUT from the basic I/O timeout
authorJames Bottomley <jbottomley@parallels.com>
Fri, 4 Oct 2013 21:42:24 +0000 (21:42 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 19 Oct 2013 21:46:39 +0000 (22:46 +0100)
commitf4a24a4f83d06285edccdf7e3cb9890be5533570
tree3982d44eabfff7d0de8c98a764f8976938c0a560
parentc4016754fe0e533721d182252d574d4f496f0f95
[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>
drivers/scsi/sd.c
drivers/scsi/sd.h