[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160522104223.GO3193@twins.programming.kicks-ass.net>
Date: Sun, 22 May 2016 12:42:23 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Peter Hurley <peter@...leysoftware.com>
Cc: Jason Low <jason.low2@....com>, Waiman Long <waiman.long@....com>,
Davidlohr Bueso <dave@...olabs.net>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
Dave Chinner <david@...morbit.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Scott J Norton <scott.norton@....com>,
Douglas Hatch <doug.hatch@....com>, jason.low2@...com
Subject: Re: [PATCH v4 2/5] locking/rwsem: Protect all writes to owner by
WRITE_ONCE
On Sat, May 21, 2016 at 09:04:14AM -0700, Peter Hurley wrote:
> And by the way, it's not just "here" but _everywhere_.
> What about reading ->on_cpu locklessly?
In the smp_cond_acquire() rework that I have pending that one is
actually 'fixed'.
But yeah, the whole load/store tearing thing is giant pain inflicted
upon us by C language and GCC people :/
And the problem is that the 'regression' is now so old it doesn't matter
they fix it or not, we have to support compilers that think its fine to
generates tears :-(
Powered by blists - more mailing lists