nvme/tcp: Report the free entries if sending_ack is set
Previous we fix the same issue in this commit:cb98b2ab3e
But we forget to fix it here. And we also need to update here, otherwise we will still face the same issue described in commit:cb98b2ab3e
Signed-off-by: Ziye Yang <ziye.yang@intel.com> Change-Id: I3660dbb6e97c92ea4cb347cfce4bf23c6dfe97ab Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3242 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
0bec3c3c64
commit
4c9aad0299
@ -846,7 +846,9 @@ nvme_tcp_c2h_data_payload_handle(struct nvme_tcp_qpair *tqpair,
|
||||
cpl.cid = tcp_req->cid;
|
||||
cpl.sqid = tqpair->qpair.id;
|
||||
nvme_tcp_req_complete(tcp_req, &cpl);
|
||||
(*reaped)++;
|
||||
if (tcp_req->ordering.send_ack) {
|
||||
(*reaped)++;
|
||||
}
|
||||
|
||||
tcp_req->ordering.data_recv = 1;
|
||||
nvme_tcp_req_put_safe(tcp_req);
|
||||
|
Loading…
Reference in New Issue
Block a user