scsi: remove scsi_end_request
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:03 +0000 (16:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 10:33:41 +0000 (12:33 +0200)
commitbc85dc500f9df9b2eec15077e5046672c46adeaa
tree66441e48e4100b1ee9a769a642800eaf77933634
parentc682adf3e1176095a665716a0b62fead8f4b8f5c
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