From: Arаm Sаrgsyаn Date: Tue, 4 Mar 2025 10:49:30 +0000 (+0000) Subject: [9.18] fix: dev: Fix memory ordering issues with atomic operations in the quota.c... X-Git-Tag: v9.18.35~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f02349e533f3dbd8a180df2736c6025da61950;p=thirdparty%2Fbind9.git [9.18] fix: dev: Fix memory ordering issues with atomic operations in the quota.c module Change all the non-locked operations on `quota->used` and `quota->waiting` to "acq/rel" for inter-thread synchronization. Some loads are left as "relaxed", because they are under a locked mutex which also provides protection. Also use relaxed memory ordering for `quota->max` and `quota->soft`, as done in the main branch; possible ordering issues for these variables are acceptable. Closes #5018 Merge branch '5018-quota-memory-ordering-fixes-9.18' into 'bind-9.18' See merge request isc-projects/bind9!10203 --- 86f02349e533f3dbd8a180df2736c6025da61950