scsi: remove scsi_end_request
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:03 +0000 (16:51 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:27 +0000 (12:12 -0600)
commitb207cace57e56ac303786f1eb9077003da1dacba
tree9d2a612a5e3ad25b2d4bed304c0b81d778b40f01
parent30db7658e27cd0fb47f8c58802dfb22028087ec3
scsi: remove scsi_end_request

By folding scsi_end_request into its only caller we can significantly clean
up the completion logic.  We can use simple goto labels now to only have
a single place to finish or requeue command there instead of the previous
convoluted logic.

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