Whamcloud - gitweb
LU-16272 libcfs: cfs_hash_for_each_empty optimization 72/48972/4
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Thu, 20 Oct 2022 19:23:39 +0000 (22:23 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 13 Jan 2023 07:24:59 +0000 (07:24 +0000)
commit306a9b666e5ea2882f704d93483355e7e147544f
tree9a44e419e3f6e5e7549b7ac071256d84c4484dd5
parent36cff0e726ae719974cd9befa5dd9d0f5f006363
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.

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