diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2014-07-18 11:11:27 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-25 17:16:42 -0400 |
commit | 26b9fd8b3452dcf0a8862e307ee23f442f63fb51 (patch) | |
tree | 22d0fd5c350181ba93b105974379210cc007ef70 | |
parent | c1d40a527e885a40bb9ea6c46a1b1145d42b66a0 (diff) |
sd: fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout
Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the
FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the
basic I/O timeout of the device. Fix this bug.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 4d72831eafe5..2c2041ca4b70 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -880,7 +880,7 @@ static int sd_setup_flush_cmnd(struct scsi_cmnd *cmd) | |||
880 | cmd->transfersize = 0; | 880 | cmd->transfersize = 0; |
881 | cmd->allowed = SD_MAX_RETRIES; | 881 | cmd->allowed = SD_MAX_RETRIES; |
882 | 882 | ||
883 | rq->timeout *= SD_FLUSH_TIMEOUT_MULTIPLIER; | 883 | rq->timeout = rq->q->rq_timeout * SD_FLUSH_TIMEOUT_MULTIPLIER; |
884 | return BLKPREP_OK; | 884 | return BLKPREP_OK; |
885 | } | 885 | } |
886 | 886 | ||