aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi_tcp.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-12-02 01:32:14 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:23 -0500
commit2ff79d52d56eebcffd83e9327b89d7daedf1e897 (patch)
tree66746804ba4965f7ffdc9ed32ce2f8c29e8dbac9 /drivers/scsi/libiscsi_tcp.c
parent262ef63627977acb7d8dd38c4f0f290bf49fbbfd (diff)
[SCSI] libiscsi: pass opcode into alloc_pdu callout
We do not need to allocate a itt for data_out, so this passes the opcode to the alloc_pdu callout. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libiscsi_tcp.c')
-rw-r--r--drivers/scsi/libiscsi_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi_tcp.c b/drivers/scsi/libiscsi_tcp.c
index e86508936314..9df6b3436e4a 100644
--- a/drivers/scsi/libiscsi_tcp.c
+++ b/drivers/scsi/libiscsi_tcp.c
@@ -1021,7 +1021,7 @@ flush:
1021 return 0; 1021 return 0;
1022 } 1022 }
1023 1023
1024 rc = conn->session->tt->alloc_pdu(task); 1024 rc = conn->session->tt->alloc_pdu(task, ISCSI_OP_SCSI_DATA_OUT);
1025 if (rc) 1025 if (rc)
1026 return rc; 1026 return rc;
1027 iscsi_prep_data_out_pdu(task, r2t, (struct iscsi_data *) task->hdr); 1027 iscsi_prep_data_out_pdu(task, r2t, (struct iscsi_data *) task->hdr);