Whamcloud - gitweb
LU-15207 libcfs: reset hs_rehash_bits 83/53283/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 11 Nov 2021 08:19:46 +0000 (11:19 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Apr 2024 05:22:42 +0000 (05:22 +0000)
commite063351ab068a795dadbefaa5514d5bf7b7c4eb2
tree08da04bba0b7fb694c5be799ff462039a43ae6d6
parent812542c9ef3ed85696b91f0c588b3836b2c329ce
LU-15207 libcfs: reset hs_rehash_bits

if rehash work is cancelled, then nobody resets
hs_rehash_bits and the first iterator asserts
at LASSERT(!cfs_hash_is_rehashing(hs)) in
cfs_hash_for_each_relax().

Lustre-change: https://review.whamcloud.com/45533
Lustre-commit: 9257f24dfdf9f0a68512fce52d79064f78d9dc88

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I1a567f6be77ca6c45e5d4f256722206b12588554
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53283
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/hash.c