]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use RCU for rad name
authorAlessio Podda <alessio@isc.org>
Mon, 23 Jun 2025 09:13:44 +0000 (11:13 +0200)
committerAlessio Podda <alessio@isc.org>
Wed, 25 Jun 2025 07:55:02 +0000 (09:55 +0200)
commit19818aebf7f5daf6644ca6a5e4eb3194babd6318
treeb875a8de04f6381a3b0601ffe01f644101405ce6
parente20d44f65898dcb1ffde03c51d0f4b226b0299a1
Use RCU for rad name

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.
lib/dns/zone.c