From: Patrick Yingxi Pan <pyxchina92929@gmail.com>
To: perfbook@vger.kernel.org
Subject: [PATCH] memorder.tex: correct the transformed code by compiler.
Date: Tue, 11 Oct 2022 11:20:49 +0800 [thread overview]
Message-ID: <CANJ3EgF8SzbAy8Wd7JANT20DCMtC7U3Z6Pzix3z9zJ-A3hYn+Q@mail.gmail.com> (raw)
Hello!
I have added the missing READ_ONCE(). Please take a look. Thanks.
Signed-off-by: Patrick Pan <pyxchina92929@gmail.com>
---
memorder/memorder.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/memorder/memorder.tex b/memorder/memorder.tex
index a0a87d0a..50ff2882 100644
--- a/memorder/memorder.tex
+++ b/memorder/memorder.tex
@@ -2869,7 +2869,7 @@ An equals comparison on \clnref{equ} might lead
the compiler to (incorrectly)
conclude that both pointers are equivalent, when in fact they carry
different dependencies.
This means that the compiler might well transform \clnref{pc} to instead
-be \co{r2 = q->c}, which might well cause the value 44 to be loaded
+be \co{r2 = READ_ONCE(q->c)}, which might well cause the value 44 to be loaded
instead of the expected value 144.
\end{fcvref}
base-commit: 7f12a9358e220f3d0c3a0880d01bc283113d7a5b
--
next reply other threads:[~2022-10-11 3:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 3:20 Patrick Yingxi Pan [this message]
2022-10-11 9:02 ` [PATCH] memorder.tex: correct the transformed code by compiler Paul E. McKenney
2022-10-12 3:19 ` Akira Yokosawa
2022-10-12 7:30 ` Paul E. McKenney
2022-10-12 8:02 ` Patrick Yingxi Pan
2022-10-12 15:15 ` Paul E. McKenney
2022-10-13 1:16 ` Patrick Yingxi Pan
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=CANJ3EgF8SzbAy8Wd7JANT20DCMtC7U3Z6Pzix3z9zJ-A3hYn+Q@mail.gmail.com \
--to=pyxchina92929@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).