aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsrp.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-07-11 02:08:21 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:37:57 -0400
commit17b0bcfad795913b1f2a3926cd238fa2ad5522a2 (patch)
treed5ea7751a3dfab990db03361316261a5006d7f64 /drivers/scsi/libsrp.c
parent62fe88261b9d865264d857777cf58a0335513151 (diff)
[SCSI] tgt: convert libsrp and ibmvstgt to use srp_transport
This converts libsrp and ibmvstgt to use srp transport. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Acked-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/libsrp.c')
-rw-r--r--drivers/scsi/libsrp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/libsrp.c b/drivers/scsi/libsrp.c
index 732446e63963..2ad0a27dbaab 100644
--- a/drivers/scsi/libsrp.c
+++ b/drivers/scsi/libsrp.c
@@ -392,7 +392,7 @@ static int vscsis_data_length(struct srp_cmd *cmd, enum dma_data_direction dir)
392} 392}
393 393
394int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info, 394int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info,
395 u64 addr) 395 u64 itn_id, u64 addr)
396{ 396{
397 enum dma_data_direction dir; 397 enum dma_data_direction dir;
398 struct scsi_cmnd *sc; 398 struct scsi_cmnd *sc;
@@ -428,7 +428,8 @@ int srp_cmd_queue(struct Scsi_Host *shost, struct srp_cmd *cmd, void *info,
428 sc->request_bufflen = len; 428 sc->request_bufflen = len;
429 sc->request_buffer = (void *) (unsigned long) addr; 429 sc->request_buffer = (void *) (unsigned long) addr;
430 sc->tag = tag; 430 sc->tag = tag;
431 err = scsi_tgt_queue_command(sc, (struct scsi_lun *) &cmd->lun, cmd->tag); 431 err = scsi_tgt_queue_command(sc, itn_id, (struct scsi_lun *)&cmd->lun,
432 cmd->tag);
432 if (err) 433 if (err)
433 scsi_host_put_command(shost, sc); 434 scsi_host_put_command(shost, sc);
434 435