scsi: remove scsi_end_request
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:03 +0000 (16:51 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:13:46 +0000 (13:13 +0000)
commitc44eb700655307d557840b71fd52746f3fe48b2a
tree3c4a1b0ec669ba8657f5be3cb28a8f6ba297c309
parent4d14e107bb7fb0b900b3a0d2460b4aba280009bd
scsi: remove scsi_end_request

commit bc85dc500f9df9b2eec15077e5046672c46adeaa upstream.

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>
[jwang: backport to 3.12]
Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/scsi/scsi_lib.c