[lustre-devel] [PATCH 24/25] lustre: obdclass: init osc.*.rpc_stats start_time
James Simmons <[email protected]> Thu, 30 Jan 2025 09:11:14 -0500
| Newsgroups | org.lustre.lists.lustre-devel |
|---|---|
| Message-ID | <[email protected]> |
From: Andreas Dilger <[email protected]> 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 <[email protected]> Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50734 Reviewed-by: Feng Lei <[email protected]> Reviewed-by: Arshad Hussain <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> --- 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 _______________________________________________ lustre-devel mailing list [email protected] http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org