mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
rcu: remove qatomic_mb_set, expand comments
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -87,7 +87,10 @@ static inline void rcu_read_lock(void)
|
||||
ctr = qatomic_read(&rcu_gp_ctr);
|
||||
qatomic_set(&p_rcu_reader->ctr, ctr);
|
||||
|
||||
/* Write p_rcu_reader->ctr before reading RCU-protected pointers. */
|
||||
/*
|
||||
* Read rcu_gp_ptr and write p_rcu_reader->ctr before reading
|
||||
* RCU-protected pointers.
|
||||
*/
|
||||
smp_mb_placeholder();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user