Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a25ee548 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
parent 6a7b4398
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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