Skip to content
  • Paolo Bonzini's avatar
    77a8b846
    rcu: make memory barriers more explicit · 77a8b846
    Paolo Bonzini authored
    
    
    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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    77a8b846
    rcu: make memory barriers more explicit
    Paolo Bonzini authored
    
    
    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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading