Skip to content

lock find when unlinking adbname->finds in dns_adb_cancelfind()

Evan Hunt requested to merge 3288-adb-cancelfind-race into main

In dns_adb_cancelfind(), we need to release the find lock and then acquire the bucket and find locks in that order, for consistency with locking hierarchy elsehwere. Previously we were only acquiring the bucket lock.

Also rewrote the function for better readability.

Closes #3288 (closed)

Edited by Ondřej Surý

Merge request reports