]> git.proxmox.com Git - mirror_qemu.git/commit
call_rcu: stop using mb_set/mb_read
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Mar 2023 10:14:15 +0000 (11:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 May 2023 09:10:49 +0000 (11:10 +0200)
commit8f593ba9c5c96b1790cc6aceb95b5b83bbac92cd
tree16e455615a6db8e55446661526ce880ecd0cc259
parent355635c0187d3cc2a0cbb3381e06d61c0bf683ba
call_rcu: stop using mb_set/mb_read

Use a store-release when enqueuing a new call_rcu, and a load-acquire
when dequeuing; and read the tail after checking that node->next is
consistent, which is the standard message passing pattern and it is
clearer than mb_read/mb_set.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/rcu.c