]> git.ipfire.org Git - thirdparty/bind9.git/commit
Call rcu_barrier() five times in the isc__mem_destroy()
authorOndřej Surý <ondrej@isc.org>
Tue, 27 Jun 2023 06:26:12 +0000 (08:26 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 31 Jul 2023 13:51:15 +0000 (15:51 +0200)
commitc1821ccf920a44d67284be462bb0ca6729235ef1
tree172f2734805a99268a1f75c6c87c58af085ecbaf
parent1e3b6d2d83e2eecc4dcbec58f57a55f515ea6976
Call rcu_barrier() five times in the isc__mem_destroy()

Because rcu_barrier() needs to be called as many times as the number of
nested call_rcu() calls (call_rcu() calls made from call_rcu thread),
and currently there's no mechanism to detect whether there are more
call_rcu callbacks scheduled, we simply call the rcu_barrier() multiple
times.  The overhead is negligible and it prevents rare assertion
failures caused by the check for memory leaks in isc__mem_destroy().
lib/isc/mem.c