]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: target: Fix LUN/device R/W and total command stats
authorMike Christie <michael.christie@oracle.com>
Wed, 17 Sep 2025 22:12:53 +0000 (17:12 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Nov 2025 03:06:11 +0000 (22:06 -0500)
commit95aa2041c654161d1b5c1eca5379d67d91ef1cf2
tree788c75173107f4fbc4abadfb7c8bf6e5bc14be37
parent3a8660878839faadb4f1a6dd72c3179c1df56787
scsi: target: Fix LUN/device R/W and total command stats

In commit 9cf2317b795d ("scsi: target: Move I/O path stats to per CPU")
I saw we sometimes use %u and also misread the spec. As a result I
thought all the stats were supposed to be 32-bit only. However, for the
majority of cases we support currently, the spec specifies u64 bit
stats. This patch converts the stats changed in the commit above to u64.

Fixes: 9cf2317b795d ("scsi: target: Move I/O path stats to per CPU")
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Link: https://patch.msgid.link/20250917221338.14813-2-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_stat.c
include/target/target_core_base.h