]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: reintroduce scsi_driver.init_command
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:04 +0000 (16:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 10:35:09 +0000 (12:35 +0200)
commita1b73fc194e73ed33c8b77bf09374cb05b58151b
tree6487feb93c538ca97313408dabdb1f957d6246fe
parentbc85dc500f9df9b2eec15077e5046672c46adeaa
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