Re: [PATCH v2 1/1] nvme-tcp: fix wrong status on deferred digest error
Sagi Grimberg <[email protected]>
| Newsgroups | org.infradead.lists.linux-nvme,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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()