]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rhashtable: Restore insecure_elasticity toggle
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 18 Apr 2026 01:41:21 +0000 (09:41 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 19 Apr 2026 15:47:21 +0000 (05:47 -1000)
commit73bd1227787bfe73eea3d04c63a89cb55db9c23e
tree1e1c5196573a1e1cb3cab5e4fd5fc2e1c34b498f
parent3cd8b194bf3428dfa53120fee47e827a7c495815
rhashtable: Restore insecure_elasticity toggle

Some users of rhashtable cannot handle insertion failures, and
are happy to accept the consequences of a hash table that having
very long chains.

Restore the insecure_elasticity toggle for these users.  In
addition to disabling the chain length checks, this also removes
the emergency resize that would otherwise occur when the hash
table occupancy hits 100% (an async resize is still scheduled
at 75%).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/rhashtable-types.h
include/linux/rhashtable.h
lib/rhashtable.c