Whamcloud - gitweb
LU-16639 misc: cleanup concole messages
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 13 Mar 2023 22:08:30 +0000 (16:08 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Nov 2023 09:31:43 +0000 (09:31 +0000)
commit46468f5a75fdf45a5b936c628f5a141fff6ffa08
tree5876056033efc781322a3b53bb0d679bbb71cec7
parent6b89bad677b4e992df4a3b51908adbf9d78bef2c
LU-16639 misc: cleanup concole messages

The lprocfs_job_cleanup() was not properly dropping all jobstats
from the hash table and printing errors from job_stat_exit() at
unmount.  Ensure all stats are "old enough" when @clear is set.

Change early libcfs cfs_cpu_init() messages from CERROR() to
pr_err() to avoid circular dependencies on libcfs setup before
printing an error message to the console during module init.

Lustre-change: https://review.whamcloud.com/50283
Lustre-commit: 8f40a3d7110da1af8e310a4b7f40b86f13080938

Test-Parameters: trivial
Fixes: ea2cd3af7b ("LU-11407 obdclass: add start time to stats files")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ide3f502103392a79419cc1836200bf5a1a3ebbe5
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53063
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/libcfs/libcfs_cpu.c
lustre/obdclass/lprocfs_jobstats.c