Re: [PATCH RFC tip/core/rcu 0/15] Remove to-be-unneeded smp_read_barrier_depends()

From: David Howells
Date: Wed Oct 11 2017 - 08:21:14 EST


Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx> wrote:

> Will Deacon has proposed adding smp_read_barrier_depends() to READ_ONCE(),
> which would mean that quite a few instances of smp_read_barrier_depends()
> would become redundant.

It's not clear from you description where the barrier is added in relation to
the read: before, after or both?

David