]> git.baikalelectronics.ru Git - kernel.git/commit
sd: don't use scsi_setup_blk_pc_cmnd for discard requests
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 10:35:13 +0000 (12:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:16:26 +0000 (22:16 +0200)
commit69408f4f94bdf5076e8111d86f0a72a386ab4dcb
treee6eb9a0fde65de834d2693ca6f0e108f87d34b06
parentb01eac82998a0b824fce048eef33ddd1ac77f956
sd: don't use scsi_setup_blk_pc_cmnd for discard requests

Simplify handling of discard requests by setting up the command directly
instead of initializing request fields and then calling
scsi_setup_blk_pc_cmnd to propagate the information into the command.

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