[PATCH 1/7] nvme: export command retry count via sysfs
Keith Busch
kbusch at kernel.org
Fri Jan 30 12:33:05 PST 2026
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.
More information about the Linux-nvme
mailing list