aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_cmnd.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2014-02-20 17:20:55 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:24 -0400
commit0479633686d370303e3430256ace4bd5f7f138dc (patch)
tree8315562a82e4c64712d2d8ee423be2f346aa27c5 /include/scsi/scsi_cmnd.h
parent21a05df547dd0ac532d3a89e241dc504018eb881 (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.h3
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)
142extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t); 142extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t);
143extern struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *, gfp_t); 143extern struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *, gfp_t);
144extern void scsi_put_command(struct scsi_cmnd *); 144extern void scsi_put_command(struct scsi_cmnd *);
145extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *, 145extern void __scsi_put_command(struct Scsi_Host *, struct scsi_cmnd *);
146 struct device *);
147extern void scsi_finish_command(struct scsi_cmnd *cmd); 146extern void scsi_finish_command(struct scsi_cmnd *cmd);
148 147
149extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, 148extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,