lkml.org 
[lkml]   [2018]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH memory-model 06/19] tools/memory-order: smp_mb__after_atomic() orders later RMW operations
    Date
    The current cheat sheet does not claim that smp_mb__after_atomic()
    orders later RMW atomic operations, which it must, at least against
    earlier RMW atomic operations and whatever precedes them. This commit
    therefore adds the needed "Y".

    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Acked-by: Alan Stern <stern@rowland.harvard.edu>
    ---
    tools/memory-model/Documentation/cheatsheet.txt | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/memory-model/Documentation/cheatsheet.txt b/tools/memory-model/Documentation/cheatsheet.txt
    index 46fe79afc737..33ba98d72b16 100644
    --- a/tools/memory-model/Documentation/cheatsheet.txt
    +++ b/tools/memory-model/Documentation/cheatsheet.txt
    @@ -14,7 +14,7 @@ smp_wmb() Y W Y Y W
    smp_mb() & synchronize_rcu() CP Y Y Y Y Y Y Y Y
    Successful full non-void RMW CP Y Y Y Y Y Y Y Y Y Y Y
    smp_mb__before_atomic() CP Y Y Y a a a a Y
    -smp_mb__after_atomic() CP a a Y Y Y Y Y
    +smp_mb__after_atomic() CP a a Y Y Y Y Y Y


    Key: C: Ordering is cumulative
    --
    2.5.2
    \
     
     \ /
      Last update: 2018-05-15 01:35    [W:4.077 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site