]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: restructure command initialization for TYPE_FS requests
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 09:58:42 +0000 (11:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:11:27 +0000 (22:11 +0200)
commit1dc864c733e610e7c2cfe48dfbe5c408f94d89e4
treec663a5fa31a457fe4b6597082ae8efbeb381045d
parent3a6b8e19dd1b23cb4fe73c39a6e84e833f1010db
scsi: restructure command initialization for TYPE_FS requests

We should call the device handler prep_fn for all TYPE_FS requests,
not just simple read/write calls that are handled by the disk driver.

Restructure the common I/O code to call the prep_fn handler and zero
out the CDB, and just leave the call to scsi_init_io to the ULDs.

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/scsi_lib.c
drivers/scsi/sd.c
drivers/scsi/sr.c
include/scsi/scsi_driver.h