* [PATCH 0/2] Update code snippets in QQA of defer/rcuapi
@ 2018-12-18 15:01 Akira Yokosawa
2018-12-18 15:03 ` [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes Akira Yokosawa
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Akira Yokosawa @ 2018-12-18 15:01 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa
From 3908668ab195e3b0b230eb7a667b03009107ca24 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Tue, 18 Dec 2018 23:38:18 +0900
Subject: [PATCH 0/2] Update code snippets in QQA of defer/rcuapi
Hi Paul,
Let's resume updating snippets.
Patch #1 updates a couple of snippets in QQA of defer/rcuapi.tex
which I missed prior to the latest release.
Patch #2 is an independent fix to avoid duplicate entries in
bibliography.
It turned out that update of code snippets in datastruct
requires some enhancement of fcvextract.pl to handle labels of
the form "/* \lnlbl{foo} */".
Also, code samples under CodeSamples/datastruct/ have quite
a few comment blocks, which should not appear in the resulting
code snippets. Putting \fcvexclude for those comment lines would
cause the code samples look ugly, so fcvextract.pl should be able to
remove them automatically.
I'll submit the update in datastruct once the update of the script
becomes ready.
Thanks, Akira
--
Akira Yokosawa (2):
defer/rcuapi: Employ new scheme for snippets in Answers to Quick
Quizzes
memorder: Avoid citing duplicate bib entries
defer/rcuapi.tex | 51 +++++++++++++++++++++------------------------------
memorder/memorder.tex | 2 +-
2 files changed, 22 insertions(+), 31 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes
2018-12-18 15:01 [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Akira Yokosawa
@ 2018-12-18 15:03 ` Akira Yokosawa
2018-12-18 15:04 ` [PATCH 2/2] memorder: Avoid citing duplicate bib entries Akira Yokosawa
2018-12-18 17:03 ` [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Paul E. McKenney
2 siblings, 0 replies; 4+ messages in thread
From: Akira Yokosawa @ 2018-12-18 15:03 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa
From 290135eea4ff9f839c48c1ac0dbe4c7adf047e3f Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Sat, 15 Dec 2018 22:20:08 +0900
Subject: [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
defer/rcuapi.tex | 51 +++++++++++++++++++++------------------------------
1 file changed, 21 insertions(+), 30 deletions(-)
diff --git a/defer/rcuapi.tex b/defer/rcuapi.tex
index a50dcbe..0b4c812 100644
--- a/defer/rcuapi.tex
+++ b/defer/rcuapi.tex
@@ -370,22 +370,17 @@ returns a value that must be passed into the corresponding
could still result in deadlock.
\begin{listing}[htbp]
-\scriptsize
-{
-\begin{verbbox}
- 1 idx = srcu_read_lock(&ssa);
- 2 synchronize_srcu(&ssb);
- 3 srcu_read_unlock(&ssa, idx);
- 4
- 5 /* . . . */
- 6
- 7 idx = srcu_read_lock(&ssb);
- 8 synchronize_srcu(&ssa);
- 9 srcu_read_unlock(&ssb, idx);
-\end{verbbox}
-}
-\centering
-\theverbbox
+\begin{VerbatimL}
+idx = srcu_read_lock(&ssa);
+synchronize_srcu(&ssb);
+srcu_read_unlock(&ssa, idx);
+
+/* . . . */
+
+idx = srcu_read_lock(&ssb);
+synchronize_srcu(&ssa);
+srcu_read_unlock(&ssb, idx);
+\end{VerbatimL}
\caption{Multistage SRCU Deadlocks}
\label{lst:defer:Multistage SRCU Deadlocks}
\end{listing}
@@ -622,20 +617,16 @@ dereferences are protected by RCU.
Listing~\ref{lst:defer:Diverse RCU Read-Side Nesting}.
\begin{listing}[htbp]
-{ \scriptsize
-\begin{verbbox}
- 1 rcu_read_lock();
- 2 preempt_disable();
- 3 p = rcu_dereference(global_pointer);
- 4
- 5 /* . . . */
- 6
- 7 preempt_enable();
- 8 rcu_read_unlock();
-\end{verbbox}
-}
-\centering
-\theverbbox
+\begin{VerbatimL}
+rcu_read_lock();
+preempt_disable();
+p = rcu_dereference(global_pointer);
+
+/* . . . */
+
+preempt_enable();
+rcu_read_unlock();
+\end{VerbatimL}
\caption{Diverse RCU Read-Side Nesting}
\label{lst:defer:Diverse RCU Read-Side Nesting}
\end{listing}
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] memorder: Avoid citing duplicate bib entries
2018-12-18 15:01 [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Akira Yokosawa
2018-12-18 15:03 ` [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes Akira Yokosawa
@ 2018-12-18 15:04 ` Akira Yokosawa
2018-12-18 17:03 ` [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Paul E. McKenney
2 siblings, 0 replies; 4+ messages in thread
From: Akira Yokosawa @ 2018-12-18 15:04 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa
From 3908668ab195e3b0b230eb7a667b03009107ca24 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Sat, 15 Dec 2018 22:39:02 +0900
Subject: [PATCH 2/2] memorder: Avoid citing duplicate bib entries
[MDR16a] and [MDR16b] are identical.
Let's consistently use "PaulEMcKenney2016LinuxKernelMMIO".
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
memorder/memorder.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/memorder/memorder.tex b/memorder/memorder.tex
index ef24095..cb4d037 100644
--- a/memorder/memorder.tex
+++ b/memorder/memorder.tex
@@ -4926,7 +4926,7 @@ defined to be the heavyweight {\tt sync} instruction.
However, Linux's \co{smp_wmb()} instruction is never used for MMIO
(since a driver must carefully order MMIOs in UP as well as
SMP kernels, after all), so it is defined to be the lighter weight
-\co{eieio} or \co{lwsync} instruction~\cite{PaulEMcKenney2016MMIO}.
+\co{eieio} or \co{lwsync} instruction~\cite{PaulEMcKenney2016LinuxKernelMMIO}.
This instruction may well be unique in having a five-vowel mnemonic.
The \co{smp_mb()} instruction is also defined to be the {\tt sync}
instruction, but both \co{smp_rmb()} and \co{rmb()} are defined to
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 0/2] Update code snippets in QQA of defer/rcuapi
2018-12-18 15:01 [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Akira Yokosawa
2018-12-18 15:03 ` [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes Akira Yokosawa
2018-12-18 15:04 ` [PATCH 2/2] memorder: Avoid citing duplicate bib entries Akira Yokosawa
@ 2018-12-18 17:03 ` Paul E. McKenney
2 siblings, 0 replies; 4+ messages in thread
From: Paul E. McKenney @ 2018-12-18 17:03 UTC (permalink / raw)
To: Akira Yokosawa; +Cc: perfbook
On Wed, Dec 19, 2018 at 12:01:07AM +0900, Akira Yokosawa wrote:
> >From 3908668ab195e3b0b230eb7a667b03009107ca24 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Tue, 18 Dec 2018 23:38:18 +0900
> Subject: [PATCH 0/2] Update code snippets in QQA of defer/rcuapi
>
> Hi Paul,
>
> Let's resume updating snippets.
>
> Patch #1 updates a couple of snippets in QQA of defer/rcuapi.tex
> which I missed prior to the latest release.
>
> Patch #2 is an independent fix to avoid duplicate entries in
> bibliography.
Applied and pushed, thank you!
> It turned out that update of code snippets in datastruct
> requires some enhancement of fcvextract.pl to handle labels of
> the form "/* \lnlbl{foo} */".
> Also, code samples under CodeSamples/datastruct/ have quite
> a few comment blocks, which should not appear in the resulting
> code snippets. Putting \fcvexclude for those comment lines would
> cause the code samples look ugly, so fcvextract.pl should be able to
> remove them automatically.
>
> I'll submit the update in datastruct once the update of the script
> becomes ready.
Very good, looking forward to it!
Thanx, Paul
> Thanks, Akira
> --
> Akira Yokosawa (2):
> defer/rcuapi: Employ new scheme for snippets in Answers to Quick
> Quizzes
> memorder: Avoid citing duplicate bib entries
>
> defer/rcuapi.tex | 51 +++++++++++++++++++++------------------------------
> memorder/memorder.tex | 2 +-
> 2 files changed, 22 insertions(+), 31 deletions(-)
>
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-12-18 17:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-18 15:01 [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Akira Yokosawa
2018-12-18 15:03 ` [PATCH 1/2] defer/rcuapi: Employ new scheme for snippets in Answers to Quick Quizzes Akira Yokosawa
2018-12-18 15:04 ` [PATCH 2/2] memorder: Avoid citing duplicate bib entries Akira Yokosawa
2018-12-18 17:03 ` [PATCH 0/2] Update code snippets in QQA of defer/rcuapi Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox