lkml.org 
[lkml]   [2017]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH tip/core/rcu 01/21] doc: READ_ONCE() now implies smp_barrier_depends()
Date
Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:

> - Q = READ_ONCE(P); smp_read_barrier_depends(); D = READ_ONCE(*Q);
> + Q = READ_ONCE(P); D = READ_ONCE(*Q);
>
> the CPU will issue the following memory operations:
>
> Q = LOAD P, D = LOAD *Q

The CPU may now issue two barriers in addition to the loads, so should we show
this? E.g.:

Q = LOAD P, BARRIER, D = LOAD *Q, BARRIER

David

\
 
 \ /
  Last update: 2017-12-04 16:39    [W:0.161 / U:0.828 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site