]> git.baikalelectronics.ru Git - kernel.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)
commita72729e1f1cd8d2576f3e1d9ea1efd396593c8b3
tree4c3e4cf603dc15252733b1472e013f9a2101b110
parent2f129249b7a8e9e9247de2cd810799d9179af12c
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