diff mbox series

[24/25] lustre: obdclass: init osc.*.rpc_stats start_time

Message ID 20250130141115.950749-25-jsimmons@infradead.org (mailing list archive)
State New
Headers show
Series lustre: sync to OpenSFS branch April 30, 2023 | expand

Commit Message

James Simmons Jan. 30, 2025, 2:11 p.m. UTC
From: Andreas Dilger <adilger@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@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50734
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 fs/lustre/ldlm/ldlm_lib.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);