iscsi_command: fix length bug when sending unsolicited data.
If we have send unsolicited immediate data and are ALSO sending unsilocoted data-out, then we have to exclude the length of data we have already sent. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -332,7 +332,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
|
||||
len = iscsi->first_burst_length - pdu->payload_len;
|
||||
}
|
||||
iscsi_send_data_out(iscsi, pdu, 0xffffffff,
|
||||
pdu->payload_len, len);
|
||||
pdu->payload_len, len - pdu->payload_len);
|
||||
}
|
||||
|
||||
/* remember cmdsn and itt so we can use task management */
|
||||
|
||||
Reference in New Issue
Block a user