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:
@@ -126,6 +126,9 @@ struct scsi_task {
|
|||||||
struct scsi_allocated_memory *mem;
|
struct scsi_allocated_memory *mem;
|
||||||
|
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
||||||
|
uint32_t itt;
|
||||||
|
uint32_t cmdsn;
|
||||||
};
|
};
|
||||||
|
|
||||||
void scsi_free_scsi_task(struct scsi_task *task);
|
void scsi_free_scsi_task(struct scsi_task *task);
|
||||||
|
|||||||
@@ -323,6 +323,10 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
|
|||||||
iscsi_send_data_out(iscsi, pdu, 0xffffffff, offset, len);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user