]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-rcu-list.c
test-rcu-list: access n_reclaims and n_nodes_removed with atomic64
authorEmilio G. Cota <cota@braap.org>
Mon, 10 Sep 2018 23:27:45 +0000 (19:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 16:47:55 +0000 (18:47 +0200)
commit39fe576c82bc02749410ea16045109f7b7d4af62
tree57f51b9625595796b130790deb9b3bc16610adfe
parentac8c77486cbdd5d7be17c447ca64cbebd330f25a
test-rcu-list: access n_reclaims and n_nodes_removed with atomic64

To avoid undefined behaviour.

Note that these "atomics" are atomic in the "access once" sense.
The variables are updated by a single thread at a time, so no
"full" atomics are necessary.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20180910232752.31565-6-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-rcu-list.c