Whamcloud - gitweb
LU-16272 libcfs: cfs_hash_for_each_empty optimization
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Thu, 20 Oct 2022 19:23:39 +0000 (22:23 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 14 Dec 2023 13:56:39 +0000 (13:56 +0000)
commit36b6b602c8783e4f5801b7df3c1c8f659371fed2
tree70fb06fa3b432c8fa62e48694c8eec95edadc846
parentf4cb1c444dbc7ff963f6af29d445fdd4caf2dc82
LU-16272 libcfs: cfs_hash_for_each_empty optimization

Restarts from bucket 0 in cfs_hash_for_each_empty()
cause excessive cpu consumption while checking first empty
buckets.

Lustre-change: https://review.whamcloud.com/48972
Lustre-commit: 306a9b666e5ea2882f704d93483355e7e147544f

HPE-bug-id: LUS-11311
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: Ic03875ea25101052468213043128912ac46daf32
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53379
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/libcfs/hash.c