do not manipulate device reference counts in scsi_get/put_command
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 23:10:31 +0000 (17:10 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:26 +0000 (12:12 -0600)
commit100414ed6f900dfefaad203f2883d2c17bc03faa
treedafd838f4c01c7bc6eb8007bf5818c858085e427
parentae9a5d93e5272020f103324c1d4b22ed9f6cde75
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