[lustre-devel] [PATCH 24/25] lustre: obdclass: init osc.*.rpc_stats start_time
James Simmons
jsimmons at infradead.org
Thu Jan 30 06:11:14 PST 2025
From: Andreas Dilger <adilger at whamcloud.com>
Add missing start_time initialization for osc.*.rpc_stats.
Fixes: 653198e691 ("lustre: obdclass: add start time to stats files")
WC-bug-id: https://jira.whamcloud.com/browse/LU-11407
Lustre-commit: 0176531449899c30e ("LU-11407 obdclass: init osc.*.rpc_stats start_time")
Signed-off-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50734
Reviewed-by: Feng Lei <flei at whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain at aeoncomputing.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/ldlm/ldlm_lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/lustre/ldlm/ldlm_lib.c b/fs/lustre/ldlm/ldlm_lib.c
index 6a03ca9e2c06..726f70c43e19 100644
--- a/fs/lustre/ldlm/ldlm_lib.c
+++ b/fs/lustre/ldlm/ldlm_lib.c
@@ -361,6 +361,7 @@ int client_obd_setup(struct obd_device *obd, struct lustre_cfg *lcfg)
cli->cl_r_in_flight = 0;
cli->cl_w_in_flight = 0;
+ cli->cl_stats_init = ktime_get_real();
spin_lock_init(&cli->cl_read_rpc_hist.oh_lock);
spin_lock_init(&cli->cl_write_rpc_hist.oh_lock);
spin_lock_init(&cli->cl_read_page_hist.oh_lock);
--
2.39.3
More information about the lustre-devel
mailing list