]> git.ipfire.org Git - thirdparty/bind9.git/commit
Convert rwlock in dns_acl to RCU
authorOndřej Surý <ondrej@isc.org>
Fri, 13 Oct 2023 06:59:41 +0000 (08:59 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 13 Oct 2023 12:44:40 +0000 (14:44 +0200)
commit96bbf95b83512333183c6514e95f45e09898e774
treeed03e4f2896ad91aa69d8726115c0536f0b0354d
parent546c327349c2729ada63d5424b73c9ba94be076d
Convert rwlock in dns_acl to RCU

The dns_aclenv_t contains two dns_acl_t - localhost and localnets that
can be swapped with a different ACLs as we configure BIND 9.  Instead of
protecting those two pointers with heavyweight read-write lock, use RCU
mechanism to dereference and swap the pointers.
lib/dns/acl.c
lib/dns/include/dns/acl.h
lib/dns/ssu.c
lib/ns/sortlist.c