value changes.
Signed-off-by: Christoph Lameter (Ampere) <cl@linux.com>
* Re-read the sequence counter since the (possibly \
* preempted) writer made progress. \
*/ \
- seq = smp_load_acquire(&s->seqcount.sequence); \
+ seq = smp_cond_load_acquire(&s->seqcount.sequence, ((VAL & 1) == 0)); \
} \
\
return seq; \
static inline unsigned __seqprop_sequence(const seqcount_t *s)
{
- return smp_load_acquire(&s->sequence);
+ return smp_cond_load_acquire(&s->sequence, ((VAL & 1) == 0));
}
static inline bool __seqprop_preemptible(const seqcount_t *s)