sd: retry discard commands
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 14:18:59 +0000 (16:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:16:28 +0000 (22:16 +0200)
commite4200f8ee35db820680a3caa25d260ef11fc1462
treead487daeb1655daf388b08d1356822ecc60e6bf8
parenta25ee5485157403612fbb59be6c0435ede2f1da8
sd: retry discard commands

Currently cmd->allowed is initialized from rq->retries for discard
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>
drivers/scsi/sd.c