mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-04-05 00:08:32 -04:00
scsi: target: Fix LUN/device R/W and total command stats
In commit9cf2317b79("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:9cf2317b79("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>
This commit is contained in:
committed by
Martin K. Petersen
parent
3a86608788
commit
95aa2041c6
@@ -671,9 +671,9 @@ struct se_lun_acl {
|
||||
};
|
||||
|
||||
struct se_dev_entry_io_stats {
|
||||
u32 total_cmds;
|
||||
u32 read_bytes;
|
||||
u32 write_bytes;
|
||||
u64 total_cmds;
|
||||
u64 read_bytes;
|
||||
u64 write_bytes;
|
||||
};
|
||||
|
||||
struct se_dev_entry {
|
||||
@@ -806,9 +806,9 @@ struct se_device_queue {
|
||||
};
|
||||
|
||||
struct se_dev_io_stats {
|
||||
u32 total_cmds;
|
||||
u32 read_bytes;
|
||||
u32 write_bytes;
|
||||
u64 total_cmds;
|
||||
u64 read_bytes;
|
||||
u64 write_bytes;
|
||||
};
|
||||
|
||||
struct se_device {
|
||||
|
||||
Reference in New Issue
Block a user