]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b6955176c65c4b1748360f245ec063d91ff7e76
tree66441e48e4100b1ee9a769a642800eaf77933634
parentf9198ee3a57b2c8decd6e463ff273a60df6f63e6
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