mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 20:41:52 -06: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:
parent
792f77f376
commit
6e288b00ef
2 changed files with 15 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue