]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: set ->scsi_done before calling scsi_dispatch_cmd
authorChristoph Hellwig <hch@lst.de>
Tue, 6 May 2014 10:25:40 +0000 (12:25 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 11:38:48 +0000 (07:38 -0400)
commit3b5382c459b709845f43361225a2e3284e50752e
tree4c3e4cf603dc15252733b1472e013f9a2101b110
parentd0d3bbf96ec21167e55a48ebb31912918a674e0d
scsi: set ->scsi_done before calling scsi_dispatch_cmd

The blk-mq code path will set this to a different function, so make the
code simpler by setting it up in a legacy-request specific place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Webb Scales <webbnh@hp.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Robert Elliott <elliott@hp.com>
drivers/scsi/scsi.c
drivers/scsi/scsi_lib.c