rcu: make memory barriers more explicit
commit77a8b8462b02a10aea5cad389a8f9260f79ede36
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Feb 2018 08:23:31 +0000 (16 09:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:47 +0000 (12 16:12 +0100)
tree5f337abf53ab50994a45f6a302f7da8ee341e01a
parent729c0ddd3cdf16973d850b1ee7c5234a1e4dddbb
rcu: make memory barriers more explicit

Prepare for introducing smp_mb_placeholder() and smp_mb_global().
The new smp_mb() in synchronize_rcu() is not strictly necessary, since
the first atomic_mb_set for rcu_gp_ctr provides the required ordering.
However, synchronize_rcu is not performance critical, and it *will* be
necessary to introduce a smp_mb_global before calling wait_for_readers().

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/rcu.h
util/rcu.c