]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Make dns_validator_cancel() respect the data ownership
authorOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2024 13:00:33 +0000 (13:00 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 27 Nov 2024 13:00:33 +0000 (13:00 +0000)
commit4c0e69ff0120c8024193b59545599cb39c171335
treeb388272adbc47b3ecd138d853ba756a69d268efc
parent025677943d56124216c86aa1a4120fdcba86ee7f
parentee122ba0251f7f5dcc0542647743b0c1408d674b
fix: dev: Make dns_validator_cancel() respect the data ownership

There was a data race dns_validator_cancel() was called when the
offloaded operations were in progress.  Make dns_validator_cancel()
respect the data ownership and only set new .canceling variable when
the offloaded operations are in progress.  The cancel operation would
then finish when the offloaded work passes the ownership back to the
respective thread.

Closes #4926

Merge branch '4926-fix-data-race-in-dns_validator' into 'main'

See merge request isc-projects/bind9!9470