scsi: set ->scsi_done before calling scsi_dispatch_cmd
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Jun 2014 02:02:09 +0000 (20:02 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:27 +0000 (12:12 -0600)
commit15432819f26a66ae394ac86a9336cd52f8c878b7
tree84f9b2e2a38a26e013ba14ca146b6107a680ab86
parent04e4f650fd3d2cb98f25cccb6414904812bb372d
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>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi.c
drivers/scsi/scsi_lib.c