lkml.org 
[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] early_printk: Add simple serialization to early_vprintk()
On Wed, Oct 04, 2017 at 05:24:23PM +0200, Peter Zijlstra wrote:
> On Wed, Oct 04, 2017 at 07:17:45AM -0700, Paul E. McKenney wrote:
> > If you use READ_ONCE(), then all architectures I know of enforce
> > full ordering for accesses to a single variable. (If you don't use
> > READ_ONCE(), then in theory Itanium can reorder reads.) Me, I would
> > argue for WRITE_ONCE() as well to prevent store tearing.
>
> Note that the stores are either cmpxchg() or smp_store_release() both of
> which imply a WRITE_ONCE().

That works for me! ;-)

Thanx, Paul

\
 
 \ /
  Last update: 2017-10-04 17:40    [W:0.083 / U:6.224 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site