Skip to content

Convert rwlock in dns_acl to RCU

Ondřej Surý requested to merge ondrej/convert-dns_acl-rwlock-to-rcu into main

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.

Edited by Ondřej Surý

Merge request reports