Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
if (cpu < 0)
cpu = 0;
+ /*
+ * This acquire MO pairs with the release fence at the end of
+ * side_rcu_wait_grace_period().
+ */
(void) __atomic_add_fetch(&gp_state->percpu_state[cpu].count[period].begin, 1, __ATOMIC_ACQUIRE);
return period;
}
if (cpu < 0)
cpu = 0;
+ /*
+ * This release MO pairs with the acquire fence at the beginning
+ * of side_rcu_wait_grace_period().
+ */
(void) __atomic_add_fetch(&gp_state->percpu_state[cpu].count[period].end, 1, __ATOMIC_RELEASE);
}