Re: rcu_read_lock lost its compiler barrier

From: Alan Stern
Date: Thu Jun 06 2019 - 10:23:51 EST


On Thu, 6 Jun 2019, Andrea Parri wrote:

> This seems a sensible change to me: looking forward to seeing a patch,
> on top of -rcu/dev, for further review and testing!
>
> We could also add (to LKMM) the barrier() for rcu_read_{lock,unlock}()
> discussed in this thread (maybe once the RCU code and the informal doc
> will have settled in such direction).

Yes. Also for SRCU. That point had not escaped me.

Alan