Whamcloud - gitweb
LU-11407 obdclass: init osc.*.rpc_stats start_time 34/50734/2
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 25 Apr 2023 06:30:50 +0000 (00:30 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 May 2023 04:12:26 +0000 (04:12 +0000)
Add missing start_time initialization for osc.*.rpc_stats.

Test-Parameters: trivial
Fixes: ea2cd3af7b ("LU-11407 obdclass: add start time to stats files")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I998b5337ccebc4d3ec18260d259f39c7893ebbe5
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>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ldlm/ldlm_lib.c

index a4ddded..b98a38b 100644 (file)
@@ -415,6 +415,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);