read_state->percpu_count = begin_cpu_count = &cpu_gp_state->count[period];
read_state->cpu = cpu;
if (side_likely(side_rcu_rseq_membarrier_available &&
- !rseq_addv((intptr_t *)&begin_cpu_count->rseq_begin, 1, cpu))) {
+ !rseq_addv(RSEQ_MO_RELAXED, RSEQ_PERCPU_CPU_ID,
+ (intptr_t *)&begin_cpu_count->rseq_begin, 1, cpu))) {
/*
* This compiler barrier (A) is paired with membarrier() at (C),
* (D), (E). It effectively upgrades this compiler barrier to a
*/
rseq_barrier();
if (side_likely(side_rcu_rseq_membarrier_available &&
- !rseq_addv((intptr_t *)&begin_cpu_count->rseq_end, 1, cpu))) {
+ !rseq_addv(RSEQ_MO_RELAXED, RSEQ_PERCPU_CPU_ID,
+ (intptr_t *)&begin_cpu_count->rseq_end, 1, cpu))) {
/*
* This barrier (F) is paired with membarrier()
* at (G). It orders increment of the begin/end