TaskManagement: Store the ITT and CMDSN in the scsi_task structure

These are required for some of the task management functions
This commit is contained in:
Ronnie Sahlberg
2011-02-15 20:57:03 +11:00
parent b51807e65a
commit f73e42ec26
2 changed files with 7 additions and 0 deletions

View File

@@ -323,6 +323,10 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
iscsi_send_data_out(iscsi, pdu, 0xffffffff, offset, len);
}
/* remember cmdsn and itt so we can use task management */
task->cmdsn = pdu->cmdsn;
task->itt = pdu->itt;
return 0;
}