summaryrefslogtreecommitdiff
path: root/fs/ceph/metric.h
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2022-03-08 07:42:17 -0500
committerIlya Dryomov <idryomov@gmail.com>2022-03-21 13:35:16 +0100
commit367290e6355ce13c17d17f3ec1075beb7ca3224a (patch)
treed7070336e2127c775ee163ce696f02da7e1117cc /fs/ceph/metric.h
parent8d728c769fd8e5aaaea36288741a4e3493111816 (diff)
ceph: track average r/w/m latency
Make the math a bit simpler to understand (should not affect execution speeds). Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/metric.h')
-rw-r--r--fs/ceph/metric.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/metric.h b/fs/ceph/metric.h
index 5b2bb2897056..c47ba0074e49 100644
--- a/fs/ceph/metric.h
+++ b/fs/ceph/metric.h
@@ -137,6 +137,7 @@ struct ceph_metric {
u64 size_min;
u64 size_max;
ktime_t latency_sum;
+ ktime_t latency_avg;
ktime_t latency_sq_sum;
ktime_t latency_min;
ktime_t latency_max;