]> git.ipfire.org Git - thirdparty/bind9.git/commit
[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)
commit86f02349e533f3dbd8a180df2736c6025da61950
tree637e3f0070922f983b83bc3a5f4a7b505bd1ddbf
parente811f444b718c361f7bb256a4a07669b68f04f73
parentdf373d7d991aedd17ae98c65051768675e1e836e
[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