]> 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)
commited03a6887fb2a2c8ee262af1e88b38a509c2a66d
treeda9f4546991926e00f7215cfe058c1e3e7aeeabd
parent394cf21a0fa74999dc30a2c8247c71755765238c
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