nvme-tcp: question on poll return value
Daniel Wagner
dwagner at suse.de
Thu Jan 25 02:41:45 PST 2024
On Wed, Jan 24, 2024 at 04:46:59PM +0100, Hannes Reinecke wrote:
> nr_cqe is set to zero at the start in nvme_tcp_try_recv(), and
> incremented for every request received.
> So we need to use the _current_ value of nr_cqe after calling
> nvme_tcp_try_recv() to figure out how many requests have been
> received, not the saved one (which will actually be the value
> of the _previous_ iteration of nvme_trp_try_recv()...).
Got it. It's obvious today :)
Thanks,
Daniel
More information about the Linux-nvme
mailing list