Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98b22737 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

seqlock: Remove now-redundant smp_read_barrier_depends()



READ_ONCE() now implies smp_read_barrier_depends(), so this patch
removes the now-redundant smp_read_barrier_depends() from
raw_read_seqcount_latch().

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
parent 1ba9c5e6
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -278,9 +278,8 @@ static inline void raw_write_seqcount_barrier(seqcount_t *s)


static inline int raw_read_seqcount_latch(seqcount_t *s)
static inline int raw_read_seqcount_latch(seqcount_t *s)
{
{
	int seq = READ_ONCE(s->sequence);
	/* Pairs with the first smp_wmb() in raw_write_seqcount_latch() */
	/* Pairs with the first smp_wmb() in raw_write_seqcount_latch() */
	smp_read_barrier_depends();
	int seq = READ_ONCE(s->sequence); /* ^^^ */
	return seq;
	return seq;
}
}