]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make fctx->attributes atomic.
authorMark Andrews <marka@isc.org>
Mon, 2 Dec 2019 04:11:50 +0000 (15:11 +1100)
committerMark Andrews <marka@isc.org>
Mon, 2 Dec 2019 21:58:53 +0000 (08:58 +1100)
commit912ce87479f7904221c45c195ef939be7fcc2d84
tree61181d562801c65dfd28c3ea6ea4e2e0b587a885
parent29c83f59223e37d7bdbc4afe7a8914f3f60363e5
Make fctx->attributes atomic.

FCTX_ATTR_SHUTTINGDOWN needs to be set and tested while holding the node
lock but the rest of the attributes don't as they are task locked. Making
fctx->attributes atomic allows both behaviours without races.
lib/dns/resolver.c
lib/isc/include/isc/atomic.h