diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2007-12-13 19:14:27 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-30 14:03:40 -0500 |
commit | bb52d82f45df3a2661d88befba7c79a7db8be496 (patch) | |
tree | 875af65ede88fe724fb350e43000fe99262fec9f /include/scsi | |
parent | 03e7925d0737d99086acee6263424dafa34e45ae (diff) |
[SCSI] tgt: use scsi_init_io instead of scsi_alloc_sgtable
If we export scsi_init_io()/scsi_release_buffers() instead of
scsi_{alloc,free}_sgtable() from scsi_lib than tgt code is much more
insulated from scsi_lib changes. As a bonus it will also gain bidi
capability when it comes.
[jejb: rebase on to sg_table and fix up rejections]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_cmnd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index a457fca66f61..09d44f91dbdb 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h | |||
@@ -127,8 +127,8 @@ extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count, | |||
127 | size_t *offset, size_t *len); | 127 | size_t *offset, size_t *len); |
128 | extern void scsi_kunmap_atomic_sg(void *virt); | 128 | extern void scsi_kunmap_atomic_sg(void *virt); |
129 | 129 | ||
130 | extern int scsi_alloc_sgtable(struct scsi_cmnd *, gfp_t); | 130 | extern int scsi_init_io(struct scsi_cmnd *cmd, gfp_t gfp_mask); |
131 | extern void scsi_free_sgtable(struct scsi_cmnd *); | 131 | extern void scsi_release_buffers(struct scsi_cmnd *cmd); |
132 | 132 | ||
133 | extern int scsi_dma_map(struct scsi_cmnd *cmd); | 133 | extern int scsi_dma_map(struct scsi_cmnd *cmd); |
134 | extern void scsi_dma_unmap(struct scsi_cmnd *cmd); | 134 | extern void scsi_dma_unmap(struct scsi_cmnd *cmd); |