diff options
author | Christoph Hellwig <hch@lst.de> | 2014-06-28 06:29:19 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-17 16:16:27 -0400 |
commit | a25ee5485157403612fbb59be6c0435ede2f1da8 (patch) | |
tree | b878190650b7dd2c769979f543d25ec697362d7a | |
parent | 6a7b43985daa4f42b6d6f0186594c3a68f84a1d8 (diff) |
sd: retry write same commands
Currently cmd->allowed is initialized from rq->retries for write same
commands, but retries is always 0 for non-BLOCK_PC requests. Set it
to the standard number of retries instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.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 03bed86b9fc9..f54a53086c9d 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -850,7 +850,7 @@ static int sd_setup_write_same_cmnd(struct scsi_cmnd *cmd) | |||
850 | } | 850 | } |
851 | 851 | ||
852 | cmd->transfersize = sdp->sector_size; | 852 | cmd->transfersize = sdp->sector_size; |
853 | cmd->allowed = rq->retries; | 853 | cmd->allowed = SD_MAX_RETRIES; |
854 | 854 | ||
855 | /* | 855 | /* |
856 | * For WRITE_SAME the data transferred in the DATA IN buffer is | 856 | * For WRITE_SAME the data transferred in the DATA IN buffer is |