]> git.ipfire.org Git - thirdparty/bind9.git/commit
Run RPZ and catalog zones tasks in exclusive mode
authorOndřej Surý <ondrej@isc.org>
Tue, 4 Jul 2023 13:15:12 +0000 (15:15 +0200)
committerAram Sargsyan <aram@isc.org>
Thu, 6 Jul 2023 10:44:03 +0000 (10:44 +0000)
commit26bb402b44987f3235b3db65b7b4806d38ebb930
tree80d53ef4a21215d413eeb59b1eea9cce7560547b
parent471a2c0dd5945c86c2cc7c5896e780eff059f903
Run RPZ and catalog zones tasks in exclusive mode

All the heavy RPZ and CATZ work is already running with offloaded
threads, and running the remaining small functions in exclusive mode
offers more synchronization guaranties.

Move the update notify registration code from the offloaded
dns__catz_update_cb() function into dns__catz_done_cb().

After this change, it should be safe to remove the lock/unlock code
from the dns_catz_dbupdate_register() and dns_catz_dbupdate_unregister()
functions, as they were causing a benign TSAN lock-order-inversion
report.
lib/dns/catz.c
lib/dns/rpz.c