Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH 7/6] advsync: Catch up changes in litmus tests
Date: Thu, 13 Jul 2017 22:38:25 +0900	[thread overview]
Message-ID: <7bd744f0-c6dd-467b-e367-fac6a6ff6e2d@gmail.com> (raw)
In-Reply-To: <1dd8bb1c-ce48-1de0-0032-fdab3bd68b46@gmail.com>

From 9a30f29d248fbe1e6a7b25f2af2b233889639837 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Thu, 13 Jul 2017 21:43:43 +0900
Subject: [PATCH 7/6] advsync: Catch up changes in litmus tests

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
Hi Paul,

This patch is a followup to the previous patch set.
It won't conflict with any one in the set.

       Thanks, Akira
--
 advsync/memorybarriers.tex | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/advsync/memorybarriers.tex b/advsync/memorybarriers.tex
index a1c3327..4d81d44 100644
--- a/advsync/memorybarriers.tex
+++ b/advsync/memorybarriers.tex
@@ -23,8 +23,8 @@ RCU.
  6 {
  7   int r2;
  8
- 9   WRITE_ONCE(x0, 2);
-10   r2 = READ_ONCE(x1);
+ 9   WRITE_ONCE(*x0, 2);
+10   r2 = READ_ONCE(*x1);
 11 }
 12
 13
@@ -32,8 +32,8 @@ RCU.
 15 {
 16   int r2;
 17
-18   WRITE_ONCE(x1, 2);
-19   r2 = READ_ONCE(x0);
+18   WRITE_ONCE(*x1, 2);
+19   r2 = READ_ONCE(*x0);
 20 }
 21
 22 exists (1:r2=0 /\ 0:r2=0)
@@ -293,9 +293,9 @@ thus allowing you to stop reading this section.
  6 {
  7   int r2;
  8
- 9   WRITE_ONCE(x0, 2);
+ 9   WRITE_ONCE(*x0, 2);
 10   smp_mb();
-11   r2 = READ_ONCE(x1);
+11   r2 = READ_ONCE(*x1);
 12 }
 13
 14
@@ -303,9 +303,9 @@ thus allowing you to stop reading this section.
 16 {
 17   int r2;
 18
-19   WRITE_ONCE(x1, 2);
+19   WRITE_ONCE(*x1, 2);
 20   smp_mb();
-21   r2 = READ_ONCE(x0);
+21   r2 = READ_ONCE(*x0);
 22 }
 23
 24 exists (1:r2=0 /\ 0:r2=0)
@@ -598,7 +598,7 @@ loads and stores.
  7 P0(int* x0, int* x1) {
  8
  9   WRITE_ONCE(*x0, 2);
-10   smp_mb();
+10   smp_wmb();
 11   WRITE_ONCE(*x1, 2);
 12
 13 }
-- 
2.7.4



  parent reply	other threads:[~2017-07-13 13:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 15:07 [PATCH 0/6] advsync: Misc. fixes around litmus tests Akira Yokosawa
2017-07-12 15:08 ` [PATCH 1/6] advsync: Fix typo of litmus name Akira Yokosawa
2017-07-12 15:10 ` [PATCH 2/6] advsync: Fix typos in load-buffering litmus tests Akira Yokosawa
2017-07-12 15:10 ` [PATCH 3/6] advsync: Fix remaining typo in exists condition Akira Yokosawa
2017-07-12 15:11 ` [PATCH 4/6] advsync: Trivial typo fixes Akira Yokosawa
2017-07-12 15:13 ` [PATCH 5/6] advsync: Fix grammatical error Akira Yokosawa
2017-07-12 15:14 ` [PATCH 6/6] advsync: Adjust value expressions in Tables 14.1 and 14.2 Akira Yokosawa
2017-07-13 13:38 ` Akira Yokosawa [this message]
2017-07-13 18:03 ` [PATCH 0/6] advsync: Misc. fixes around litmus tests Paul E. McKenney
2017-07-13 18:12   ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7bd744f0-c6dd-467b-e367-fac6a6ff6e2d@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox