scsi: unwind blk_end_request_all and blk_end_request_err calls
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Jun 2014 02:15:54 +0000 (20:15 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:28 +0000 (12:12 -0600)
commitbeb8be6788c9a85cd42857ec1aece91e1d4e41e2
treee467c768a05b831fdc2b3ba58555d323fb6ccec4
parent2b0eff13a90f3500656fcfd1c8a358d30acc1efe
scsi: unwind blk_end_request_all and blk_end_request_err calls

Replace the calls to the various blk_end_request variants with opencode
equivalents.  Blk-mq is using a model that gives the driver control
between the bio updates and the actual completion, and making the old
code follow that same model allows us to keep the code more similar for
both pathes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_lib.c