remove a useless get/put_device pair in scsi_requeue_command
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:20:58 +0000 (14:20 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:26 +0000 (12:12 -0600)
commit3c8855bdc34c709f5092732266612cf4cf8456cf
treeb9a2377fd2a314f5616fa9e9b461bac85c29b076
parentbce815677fba88a7b8e53b9ce222f731b61aee1a
remove a useless get/put_device pair in scsi_requeue_command

Avoid a spurious device get/put pair by cleaning up scsi_requeue_command
and folding scsi_unprep_request into it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_lib.c