[PATCH v2 1/1] nvme-tcp: fix wrong status on deferred digest error

Sagi Grimberg sagi at grimberg.me
Sun Aug 30 14:43:05 PDT 2026



On 27/08/2026 4:05, Xixin Liu wrote:
> A C2HData digest error stores a host status code in req->status. Without
> DATA_SUCCESS completion goes through the rsp path, which passed that host
> value straight into complete as CQE Status wire encoding.
>
> On the rsp path, shift left when a deferred host error is stored,
> otherwise use cqe->status.

Why not just assign with a shifted status?
We already do this in nvme_tcp_end_request()



More information about the Linux-nvme mailing list