scsi: centralize command re-queueing in scsi_dispatch_fn
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2014 17:39:04 +0000 (18:39 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 11:38:41 +0000 (07:38 -0400)
commitd0d3bbf96ec21167e55a48ebb31912918a674e0d
treeb769066fd453a715abe19726af185d478a4ba47a
parentde3e8bf3315c9c7c7ffd2f9b2f299b4205feefb9
scsi: centralize command re-queueing in scsi_dispatch_fn

Make sure we only have the logic for requeing commands in one place.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Webb Scales <webbnh@hp.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Robert Elliott <elliott@hp.com>
drivers/scsi/scsi.c
drivers/scsi/scsi_lib.c