[PATCH] nvme-tcp: print correct opcode on timeout and error handling

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Mar 8 17:46:08 PST 2023


>>>> To fix this problem, when setting up the nvme_command, keep the
>>>> opcode in
>>>> a newly added member in the nvme_tcp_request and use that instead.
>>> I'm wandering if we should just not reuse the cmd pdu for a subsequent
>>> data pdu...
>>>
>>> It will take more space allocated per request (up to a few MBs for lots
>>> of requests and controllers)...
>>>
>>> but will prevent from propagating this to nvme core...
>>>
>> Is there a way we can do this without increasing the memory usage ?
> The data pdu has to go somewhere. There doesn't appear to be another free area
> other than the command pdu, so if that's off limits to preserve the original
> sqe, then more memory is needed.

hmmm I guess there is not option then ...

-ck




More information about the Linux-nvme mailing list