push_waiter(mutex, &w);
/*
- * Add waiter before reading mutex->handoff. Pairs with qatomic_mb_set
+ * Add waiter before reading mutex->handoff. Pairs with qatomic_set_mb
* in qemu_co_mutex_unlock.
*/
smp_mb__after_rmw();
our_handoff = mutex->sequence;
/* Set handoff before checking for waiters. */
- qatomic_mb_set(&mutex->handoff, our_handoff);
+ qatomic_set_mb(&mutex->handoff, our_handoff);
if (!has_waiters(mutex)) {
/* The concurrent lock has not added itself yet, so it
* will be able to pick our handoff.