Re: [PATCH 1/7] nvme: export command retry count via sysfs

Keith Busch
2026-01-30T20:33:16Z

On Fri, Jan 30, 2026 at 11:50:18PM +0530, Nilay Shroff wrote:
> nvme_req(req)->retries++;
> + if (ns)
> + ns->retries++;
> + else
> + nvme_req(req)->ctrl->retries++;

I don't think admin commands ever retry with this driver, so probably
not worth tracking it.

And as unlikely as it is to happen, might want to ensure it doesn't
wrap back to zero. The size_add() function handles that.