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

@@ -126,6 +126,9 @@ struct scsi_task {
struct scsi_allocated_memory *mem;
void *ptr;
uint32_t itt;
uint32_t cmdsn;
};
void scsi_free_scsi_task(struct scsi_task *task);

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;
}