]> 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 23:52:02 +0000 (10:52 +1100)
commitc712f40676132d0071d6cdf20eae14ca7fec7128
treef0c91f06964ebf7bcc03f322495c7d599566a78e
parent0f2a8e259ded795e5354c801950eaea32b6336fd
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.

(cherry picked from commit 912ce87479f7904221c45c195ef939be7fcc2d84)
lib/dns/resolver.c
lib/isc/include/isc/atomic.h