]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[9.18] fix: dev: Fix memory ordering issues with atomic operations in the quota.c...
authorArаm Sаrgsyаn <aram@isc.org>
Tue, 4 Mar 2025 10:49:30 +0000 (10:49 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 4 Mar 2025 10:49:30 +0000 (10:49 +0000)
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


Trivial merge