[SCSI] remove a useless get/put_device pair in scsi_next_command
authorBart Van Assche <bvanassche@acm.org>
Thu, 20 Feb 2014 22:20:57 +0000 (14:20 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:25 +0000 (10:19 -0700)
commit27e9e0f12acb5a76c72c3eed31ad3336e1970717
tree6a5d8e9b13e265e66aea805840bbd05bbec063fa
parent613be1f626e602c6744101a003e8fc5c180e1af9
[SCSI] remove a useless get/put_device pair in scsi_next_command

Eliminate a get_device() / put_device() pair from scsi_next_command().
Both are atomic operations hence removing these slightly improves
performance.

[hch: slight changes due to different context]
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_lib.c