summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNilay Shroff <nilay@linux.ibm.com>2026-05-17 00:06:51 +0530
committerKeith Busch <kbusch@kernel.org>2026-06-04 01:57:25 -0700
commit30ab37a128000600dcaae2b35d4a594e304dfe7e (patch)
tree820fcd732ff22780136d20516fdf47f12ede866d /include/linux
parent66ee95b3d490d78283b6e92cb4230d4a04c99817 (diff)
nvme: export command error counters via sysfs
When an NVMe command completes with an error status, the driver logs the error to the kernel log. However, these messages may be lost or overwritten over time since dmesg is a circular buffer. Expose per-path and ctrl sysfs attribute command_error_count, under diag attribute group to provide persistent visibility into error occurrences. This allows users to observe the total number of commands that have failed on a given path over time, which can be useful for diagnosing path health and stability. This attribute is both readable and writable thus allowing user to reset these counters. These counters can also be consumed by observability tools such as nvme-top to provide additional insight into NVMe error behavior. Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com> Signed-off-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions