]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: remove scsi_end_request
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:03 +0000 (16:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Aug 2016 09:40:29 +0000 (11:40 +0200)
commit75b319d68655ff8790f9c03f294c31d81de3b08c
tree3ea9ff2659d296cf66268dfac97591e6f3ed8a6b
parentec032b74164fab3dabeceb37362f2a58227c51b8
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