scsi: reintroduce scsi_driver.init_command
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 22:54:25 +0000 (16:54 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:27 +0000 (12:12 -0600)
commitb93e3da75e9f97debe37e3b8f1ca5eaeb4317b94
tree9d31806b8aeee74b61f5670e3063a32e7d98d18f
parentb207cace57e56ac303786f1eb9077003da1dacba
scsi: reintroduce scsi_driver.init_command

Instead of letting the ULD play games with the prep_fn move back to
the model of a central prep_fn with a callback to the ULD.  This
already cleans up and shortens the code by itself, and will be required
to properly support blk-mq in the SCSI midlayer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nicholas Bellinger <nab@linux-iscsi.org>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
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