aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-05-30 13:57:15 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2007-06-01 12:58:22 -0400
commit857ae0bdb72999936a28ce621e38e2e288c485da (patch)
treecf1b9272c6c5bdb5448d016390bc2b07d435f5b3 /drivers/infiniband
parentd473cc7f15f64ab8a90c3d7288ef30f46785d8d5 (diff)
[SCSI] iscsi: Some fixes in preparation for bidirectional support - total_length
- Remove shadow of request length from struct iscsi_cmd_task. - change all users to use scsi_cmnd->request_bufflen directly (With bidi we will use scsi-ml API to retrieve in/out length) Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: Roland Dreier <rdreier@cisco.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index e39d9a07bc5d..568f88bf7c91 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -140,10 +140,10 @@ iscsi_iser_cmd_init(struct iscsi_cmd_task *ctask)
140 iser_ctask->iser_conn = iser_conn; 140 iser_ctask->iser_conn = iser_conn;
141 141
142 if (sc->sc_data_direction == DMA_TO_DEVICE) { 142 if (sc->sc_data_direction == DMA_TO_DEVICE) {
143 BUG_ON(ctask->total_length == 0); 143 BUG_ON(sc->request_bufflen == 0);
144 144
145 debug_scsi("cmd [itt %x total %d imm %d unsol_data %d\n", 145 debug_scsi("cmd [itt %x total %d imm %d unsol_data %d\n",
146 ctask->itt, ctask->total_length, ctask->imm_count, 146 ctask->itt, sc->request_bufflen, ctask->imm_count,
147 ctask->unsol_count); 147 ctask->unsol_count);
148 } 148 }
149 149