]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Use RCU for rad name
authorAlessio Podda <alessio@isc.org>
Wed, 25 Jun 2025 08:30:28 +0000 (08:30 +0000)
committerAlessio Podda <alessio@isc.org>
Wed, 25 Jun 2025 08:30:28 +0000 (08:30 +0000)
The RAD/agent domain is a functionality from RFC 9567 that provides
a suffix for reporting error messages. On every query context reset,
we need to check if a RAD is configured and, if so, copy it.

Since we allow the RAD to be changed by reconfiguring the zone,
this access is currently protected by a mutex, which causes contention.

This commit replaces the mutex with RCU to reduce contention. The
change results in a 3% performance improvement in the 1M delegation
test.

Merge branch 'alessio/rcu-rad' into 'main'

See merge request isc-projects/bind9!10616


Trivial merge