pdu: set pdu->cmdsn when the pdu structure is updated

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2015-03-30 12:31:24 +02:00
parent 395ca12746
commit 153e6ba07c
6 changed files with 5 additions and 10 deletions

View File

@@ -302,9 +302,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
iscsi_pdu_set_expxferlen(pdu, task->expxferlen);
/* cmdsn */
iscsi_pdu_set_cmdsn(pdu, iscsi->cmdsn);
pdu->cmdsn = iscsi->cmdsn;
iscsi->cmdsn++;
iscsi_pdu_set_cmdsn(pdu, iscsi->cmdsn++);
/* cdb */
iscsi_pdu_set_cdb(pdu, task);