]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rely on call_rcu() to destroy the qpzone outside of locks
authorOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2025 17:02:29 +0000 (18:02 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2025 22:28:53 +0000 (23:28 +0100)
commitd4e8a92977b8ab63e4425f2056ea3871c386acc6
treec0063fdff4dff02f2f3ff290d836dcbb22cdf109
parentc6c03a6b114aa04d70a78d240b0aa57ea28f3c2a
Rely on call_rcu() to destroy the qpzone outside of locks

Reduce the number of qpzone_ref() and qpzone_unref() calls in
qpzone_detachnode() by relying on the call_rcu to delay
the destruction of the lock buckets.

(cherry picked from commit 1fa5219fdfdec78d71b9fc270f87fa068a98f2a6)
lib/dns/qpcache.c
lib/dns/qpzone.c