pdu: move update of maxcmdsn, expcmdsn & statsn to iscsi_process_pdu

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2015-04-20 14:46:44 +02:00
parent 1f6d901324
commit b3ad565783
6 changed files with 24 additions and 59 deletions

View File

@@ -94,14 +94,9 @@ int
iscsi_process_task_mgmt_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu,
struct iscsi_in_pdu *in)
{
uint32_t response;
response = in->hdr[2];
iscsi_adjust_maxexpcmdsn(iscsi, in);
uint32_t response = in->hdr[2];
pdu->callback(iscsi, SCSI_STATUS_GOOD, &response, pdu->private_data);
return 0;
}