]> git.baikalelectronics.ru Git - kernel.git/commit
sd: don't use scsi_setup_blk_pc_cmnd for flush requests
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 10:08:05 +0000 (12:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:12:33 +0000 (22:12 +0200)
commit1b315108d3fc7c8d6ee8d39bac243d0ba2d43812
tree73216026ecf12ec9b6decd32deacb06c1979030d
parentde1f748f1c325ada0e94a7539d196daf007ee9d7
sd: don't use scsi_setup_blk_pc_cmnd for flush requests

Simplify handling of flush 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.

Also rename scsi_setup_flush_cmnd to sd_setup_flush_cmnd for consistency.

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