diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-20 17:20:55 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 13:19:24 -0400 |
commit | 0479633686d370303e3430256ace4bd5f7f138dc (patch) | |
tree | 8315562a82e4c64712d2d8ee423be2f346aa27c5 /include/scsi/scsi_cmnd.h | |
parent | 21a05df547dd0ac532d3a89e241dc504018eb881 (diff) |
[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>
Diffstat (limited to 'include/scsi/scsi_cmnd.h')
-rw-r--r-- | include/scsi/scsi_cmnd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 91558a1f97f4..414edf9b1272 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h | |||
@@ -142,8 +142,7 @@ static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) | |||
142 | extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t); | 142 | extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t); |
143 | extern struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *, gfp_t); | 143 | extern struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *, gfp_t); |
144 | extern void scsi_put_command(struct scsi_cmnd *); | 144 | extern void scsi_put_command(struct scsi_cmnd *); |
145 | extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *, | 145 | extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *); |
146 | struct device *); | ||
147 | extern void scsi_finish_command(struct scsi_cmnd *cmd); | 146 | extern void scsi_finish_command(struct scsi_cmnd *cmd); |
148 | 147 | ||
149 | extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, | 148 | extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, |