]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit055387e04285ad5eb77b4ab970953f9d06ea4c31
treead487daeb1655daf388b08d1356822ecc60e6bf8
parent33631c2c0f9fae2958b2b98364df7d3f97dec556
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