Commit 4c9aad02 authored by Ziye Yang's avatar Ziye Yang Committed by Tomasz Zawadzki
Browse files

nvme/tcp: Report the free entries if sending_ack is set



Previous we fix the same issue in this commit:
cb98b2ab

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: cb98b2ab

Signed-off-by: default avatarZiye 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 0bec3c3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
		if (tcp_req->ordering.send_ack) {
			(*reaped)++;
		}

		tcp_req->ordering.data_recv = 1;
		nvme_tcp_req_put_safe(tcp_req);