Skip to content

Make dns_validator_cancel() respect the data ownership

Ondřej Surý requested to merge 4926-fix-data-race-in-dns_validator into main

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 .shuttingdown 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 request reports