]> git.baikalelectronics.ru Git - kernel.git/commit
sd: don't use scsi_setup_blk_pc_cmnd for write same requests
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 10:22:22 +0000 (12:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:12:47 +0000 (22:12 +0200)
commitb01eac82998a0b824fce048eef33ddd1ac77f956
treeda9f4546991926e00f7215cfe058c1e3e7aeeabd
parent1b315108d3fc7c8d6ee8d39bac243d0ba2d43812
sd: don't use scsi_setup_blk_pc_cmnd for write same requests

Simplify handling of write same 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: Webb Scales <webbnh@hp.com>
drivers/scsi/sd.c