scsi: don't use scsi_next_command in scsi_reset_provider
authorChristoph Hellwig <hch@lst.de>
Sat, 6 Sep 2014 01:00:05 +0000 (18:00 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Nov 2014 18:56:40 +0000 (19:56 +0100)
scsi_reset_provider already manually runs all queues for the given host,
so it doesn't need the scsi_run_queues call from it, and it doesn't need
a reference on the device because it's synchronous.

So let's just call scsi_put_command directly and avoid the device reference
dance to simplify the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>

No differences found