Re: [PATCH RFC bpf-next v2 00/18] bpf: Introduce resizable hash map

Herbert Xu
2026-04-15T03:27:48Z

On Wed, Apr 08, 2026 at 08:10:05AM -0700, Mykyta Yatsenko wrote:
>
> rhashtable: Add rhashtable_walk_enter_from()

Rhashtable walking is strongly discouraged because there is no
way to provide a consistent walk on a hash table that can be resized
or rehashed during the walk.

So the question is why do you need to be able to walk through the
hash table, and do you need consistency guarantees such as walking
through every entry once and once only?

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt