mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
postcopy-ram: do not use qatomic_mb_read
It does not even pair with a qatomic_mb_set(), so it is clearer to use load-acquire in this case; they are synonyms. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6a8a98a049
commit
4592eaf387
1 changed files with 1 additions and 1 deletions
|
@ -1500,7 +1500,7 @@ static PostcopyState incoming_postcopy_state;
|
|||
|
||||
PostcopyState postcopy_state_get(void)
|
||||
{
|
||||
return qatomic_mb_read(&incoming_postcopy_state);
|
||||
return qatomic_load_acquire(&incoming_postcopy_state);
|
||||
}
|
||||
|
||||
/* Set the state and return the old state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue