Fix handling of queued text and logout requests.
While it may have little sense, text and logout requests can be queued. If they are, they consume cmdsn, so we should increment our conn_cmdsn. MFC after: 1 week
This commit is contained in:
parent
8f1beb889e
commit
e9b7390bb2
@ -75,6 +75,8 @@ text_receive(struct connection *conn)
|
||||
conn->conn_statsn);
|
||||
}
|
||||
conn->conn_cmdsn = ntohl(bhstr->bhstr_cmdsn);
|
||||
if ((bhstr->bhstr_opcode & ISCSI_BHS_OPCODE_IMMEDIATE) == 0)
|
||||
conn->conn_cmdsn++;
|
||||
|
||||
return (request);
|
||||
}
|
||||
@ -131,6 +133,8 @@ logout_receive(struct connection *conn)
|
||||
conn->conn_statsn);
|
||||
}
|
||||
conn->conn_cmdsn = ntohl(bhslr->bhslr_cmdsn);
|
||||
if ((bhslr->bhslr_opcode & ISCSI_BHS_OPCODE_IMMEDIATE) == 0)
|
||||
conn->conn_cmdsn++;
|
||||
|
||||
return (request);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user