]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor NTA to use RCU instead of rwlock
authorOndřej Surý <ondrej@isc.org>
Sun, 15 Mar 2026 13:42:06 +0000 (14:42 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 00:44:37 +0000 (01:44 +0100)
commitfae6c6eeadac46d458d2527eae037d555d461b1c
tree9f9c185612ad5d9714f252f5a7f05dcd501e2891
parent7be7dbb7b3d6732735b0829d73cb638a1a14efcc
Refactor NTA to use RCU instead of rwlock

Replace the ntatable rwlock with RCU read-side critical sections.
The QP multi trie already provides its own concurrency control for
reads and writes, making the rwlock redundant. NTA fields like
expiry are only accessed from the NTA's own event loop thread, so
no additional synchronization is needed.

The table shutdown is now deferred via call_rcu to ensure all
read-side critical sections have completed before iterating and
shutting down individual NTAs.
lib/dns/nta.c