[SCSI] do not manipulate device reference counts in scsi_get/put_command
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:20:55 +0000 (14:20 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:24 +0000 (10:19 -0700)
commit0479633686d370303e3430256ace4bd5f7f138dc
tree8315562a82e4c64712d2d8ee423be2f346aa27c5
parent21a05df547dd0ac532d3a89e241dc504018eb881
[SCSI] do not manipulate device reference counts in scsi_get/put_command

Many callers won't need this and we can optimize them away.  In addition
the handling in the __-prefixed variants was inconsistant to start with.

Based on an earlier patch from Bart Van Assche.

[jejb: fix kerneldoc probelm picked up by Fengguang Wu]
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.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_tgt_lib.c
include/scsi/scsi_cmnd.h