From: Christoph Hellwig Date: Sat, 28 Jun 2014 10:29:19 +0000 (+0200) Subject: sd: retry write same commands X-Git-Tag: v4.9.8~5861^2~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a25ee5485157403612fbb59be6c0435ede2f1da8;p=platform%2Fkernel%2Flinux-rpi3.git 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 Reviewed-by: Martin K. Petersen Reviewed-by: Hannes Reinecke --- diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 03bed86..f54a530 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) } cmd->transfersize = sdp->sector_size; - cmd->allowed = rq->retries; + cmd->allowed = SD_MAX_RETRIES; /* * For WRITE_SAME the data transferred in the DATA IN buffer is