* [PATCH 0/8] Fixups for together/ directory
@ 2016-10-10 23:07 SeongJae Park
2016-10-10 23:07 ` [PATCH 1/8] together: Add missing NBSPs for line numbers SeongJae Park
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
This patchset fixes few trivial problems under together/ directory that found
by Korean translation work.
SeongJae Park (8):
together: Add missing NBSPs for line numbers
together: Fix a wrong code line quotation
together: Fix wrong function name quotations
together: Add a missing comma
together: Append `()` suffix to function name quotation
together: Fix a wrong field citation
together: Fix a contextual typo
together: Improve struct field quotation readability
together/applyrcu.tex | 14 +++++++-------
together/refcnt.tex | 10 +++++-----
2 files changed, 12 insertions(+), 12 deletions(-)
--
2.10.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/8] together: Add missing NBSPs for line numbers
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 2/8] together: Fix a wrong code line quotation SeongJae Park
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
This commit adds few missed NBSP(Non-Breaking Space)s for line number
quotations.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/applyrcu.tex | 6 +++---
together/refcnt.tex | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/together/applyrcu.tex b/together/applyrcu.tex
index 15039f645acc..659928877c00 100644
--- a/together/applyrcu.tex
+++ b/together/applyrcu.tex
@@ -208,17 +208,17 @@ Lines~10-13 show \co{inc_count()}, which is unchanged from
Figure~\ref{fig:count:Per-Thread Statistical Counters}.
Lines~15-29 show \co{read_count()}, which has changed significantly.
-Lines~21 and 27 substitute \co{rcu_read_lock()} and
+Lines~21 and~27 substitute \co{rcu_read_lock()} and
\co{rcu_read_unlock()} for acquisition and release of \co{final_mutex}.
Line~22 uses \co{rcu_dereference()} to snapshot the
current \co{countarray} structure into local variable \co{cap}.
Proper use of RCU will guarantee that this \co{countarray} structure
will remain with us through at least the end of the current RCU
read-side critical section at line~27.
-Line 23 initializes \co{sum} to \co{cap->total}, which is the
+Line~23 initializes \co{sum} to \co{cap->total}, which is the
sum of the counts of threads that have previously exited.
Lines~24-26 add up the per-thread counters corresponding to currently
-running threads, and, finally, line 28 returns the sum.
+running threads, and, finally, line~28 returns the sum.
The initial value for \co{countarrayp} is
provided by \co{count_init()} on lines~31-39.
diff --git a/together/refcnt.tex b/together/refcnt.tex
index 778ad8e9da24..587a067f7501 100644
--- a/together/refcnt.tex
+++ b/together/refcnt.tex
@@ -504,7 +504,7 @@ Line~6 invokes \co{rcu_read_lock()}, which
enters an RCU read-side critical section.
The callback function from any subsequent \co{call_rcu()} primitive
will be deferred until a matching \co{rcu_read_unlock()} is reached
-(line~10 or 14 in this example).
+(line~10 or~14 in this example).
Line~7 looks up the file structure corresponding to the file
descriptor specified by the \co{fd} argument, as will be
described later.
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/8] together: Fix a wrong code line quotation
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
2016-10-10 23:07 ` [PATCH 1/8] together: Add missing NBSPs for line numbers SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 3/8] together: Fix wrong function name quotations SeongJae Park
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/refcnt.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/refcnt.tex b/together/refcnt.tex
index 587a067f7501..a7e6c7bd0332 100644
--- a/together/refcnt.tex
+++ b/together/refcnt.tex
@@ -306,7 +306,7 @@ process does no cross-module optimizations has the same effect.
The \co{kref_put()} function on lines~16-28 atomically decrements the
counter, and if the result is zero, line~24 invokes the specified
-\co{release()} function and line~24 returns, informing the caller
+\co{release()} function and line~25 returns, informing the caller
that \co{release()} was invoked.
Otherwise, \co{kref_put()} returns zero, informing the caller that
\co{release()} was not called.
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/8] together: Fix wrong function name quotations
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
2016-10-10 23:07 ` [PATCH 1/8] together: Add missing NBSPs for line numbers SeongJae Park
2016-10-10 23:07 ` [PATCH 2/8] together: Fix a wrong code line quotation SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 4/8] together: Add a missing comma SeongJae Park
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
Few sentences calls `kref_sub()` function as `kref_put()`. This commit
fixes the wrong citations.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/refcnt.tex | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/together/refcnt.tex b/together/refcnt.tex
index a7e6c7bd0332..22d0a8d1d08e 100644
--- a/together/refcnt.tex
+++ b/together/refcnt.tex
@@ -304,11 +304,11 @@ optimizations on all platforms, but the fact that the \co{kref}
primitives are in a separate module and that the Linux kernel build
process does no cross-module optimizations has the same effect.
-The \co{kref_put()} function on lines~16-28 atomically decrements the
+The \co{kref_sub()} function on lines~16-28 atomically decrements the
counter, and if the result is zero, line~24 invokes the specified
\co{release()} function and line~25 returns, informing the caller
that \co{release()} was invoked.
-Otherwise, \co{kref_put()} returns zero, informing the caller that
+Otherwise, \co{kref_sub()} returns zero, informing the caller that
\co{release()} was not called.
\QuickQuiz{}
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/8] together: Add a missing comma
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (2 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 3/8] together: Fix wrong function name quotations SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 5/8] together: Append `()` suffix to function name quotation SeongJae Park
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/refcnt.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/refcnt.tex b/together/refcnt.tex
index 22d0a8d1d08e..cf23ba729d01 100644
--- a/together/refcnt.tex
+++ b/together/refcnt.tex
@@ -129,7 +129,7 @@ reference count need be checked for zero only very rarely.
Simple counting protected by locking (\makebox{``-''}) is described in
Section~\ref{sec:together:Simple Counting},
atomic counting with no memory barriers (``A'') is described in
-Section~\ref{sec:together:Atomic Counting}
+Section~\ref{sec:together:Atomic Counting},
atomic counting with acquisition memory barrier (``AM'') is described in
Section~\ref{sec:together:Atomic Counting With Release Memory Barrier},
and
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/8] together: Append `()` suffix to function name quotation
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (3 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 4/8] together: Add a missing comma SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 6/8] together: Fix a wrong field citation SeongJae Park
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/applyrcu.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/applyrcu.tex b/together/applyrcu.tex
index 659928877c00..86471633a64a 100644
--- a/together/applyrcu.tex
+++ b/together/applyrcu.tex
@@ -268,7 +268,7 @@ Line~65 then retains a pointer to the current (soon to be old)
\co{countarray} structure, and line~66 uses \co{rcu_assign_pointer()}
to install the new version of the \co{countarray} structure.
Line~68 waits for a grace period to elapse, so that any threads that
-might be concurrently executing in \co{read_count}, and thus might
+might be concurrently executing in \co{read_count()}, and thus might
have references to the old \co{countarray} structure, will be allowed
to exit their RCU read-side critical sections, thus dropping any such
references.
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/8] together: Fix a wrong field citation
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (4 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 5/8] together: Append `()` suffix to function name quotation SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 7/8] together: Fix a contextual typo SeongJae Park
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
A sentence is pointing out ->a[] field while it should point out ->fa
field by its context. This commit fixes the wrong field citation.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/applyrcu.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/applyrcu.tex b/together/applyrcu.tex
index 86471633a64a..60d489c3b7bb 100644
--- a/together/applyrcu.tex
+++ b/together/applyrcu.tex
@@ -465,7 +465,7 @@ length~\cite{Arcangeli03}.
\item CPU~0 loads the value of \co{->fa->length}, obtaining the value 16.
\item CPU~1 shrinks the array to be of length 8, and assigns a pointer
to a new \co{foo_a} structure containing an 8-character block
- of memory into \co{->a[]}.
+ of memory into \co{->fa}.
\item CPU~0 picks up the new pointer from \co{->a[]}, and stores a
new value into element 12.
But because CPU~0 is still referencing the old \co{foo_a}
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/8] together: Fix a contextual typo
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (5 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 6/8] together: Fix a wrong field citation SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-10 23:07 ` [PATCH 8/8] together: Improve struct field quotation readability SeongJae Park
2016-10-11 7:31 ` [PATCH 0/8] Fixups for together/ directory Paul E. McKenney
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/applyrcu.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/applyrcu.tex b/together/applyrcu.tex
index 60d489c3b7bb..02d36e6ba5f3 100644
--- a/together/applyrcu.tex
+++ b/together/applyrcu.tex
@@ -606,7 +606,7 @@ can be freed.
\item Use \co{rcu_assign_pointer()} to point \co{->mp}
back to the old embedded \co{->meas} field.
\item After another grace period elapses, free up the
- new \co{measurement} field.
+ new \co{measurement} structure.
\end{enumerate}
This approach uses a heavier weight update procedure to eliminate
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 8/8] together: Improve struct field quotation readability
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (6 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 7/8] together: Fix a contextual typo SeongJae Park
@ 2016-10-10 23:07 ` SeongJae Park
2016-10-11 7:31 ` [PATCH 0/8] Fixups for together/ directory Paul E. McKenney
8 siblings, 0 replies; 10+ messages in thread
From: SeongJae Park @ 2016-10-10 23:07 UTC (permalink / raw)
To: paulmck; +Cc: perfbook, SeongJae Park
A sentence is not using \co{}, neither -> for quotation of a field in a
struct while other sentences uses both \co{} and -> for such case. This
commit uses -> and \co{} for the quotation for better readability.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
together/applyrcu.tex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/together/applyrcu.tex b/together/applyrcu.tex
index 02d36e6ba5f3..633488664779 100644
--- a/together/applyrcu.tex
+++ b/together/applyrcu.tex
@@ -262,7 +262,7 @@ Lines~56-60 allocate a new \co{countarray} structure,
line~61 acquires \co{final_mutex} and line~67 releases it.
Line~62 copies the contents of the current \co{countarray} into
the newly allocated version, line~63 adds the exiting thread's \co{counter}
-to new structure's total, and line~64 \co{NULL}s the exiting thread's
+to new structure's \co{->total}, and line~64 \co{NULL}s the exiting thread's
\co{counterp[]} array element.
Line~65 then retains a pointer to the current (soon to be old)
\co{countarray} structure, and line~66 uses \co{rcu_assign_pointer()}
--
2.10.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/8] Fixups for together/ directory
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
` (7 preceding siblings ...)
2016-10-10 23:07 ` [PATCH 8/8] together: Improve struct field quotation readability SeongJae Park
@ 2016-10-11 7:31 ` Paul E. McKenney
8 siblings, 0 replies; 10+ messages in thread
From: Paul E. McKenney @ 2016-10-11 7:31 UTC (permalink / raw)
To: SeongJae Park; +Cc: perfbook
On Tue, Oct 11, 2016 at 08:07:30AM +0900, SeongJae Park wrote:
> This patchset fixes few trivial problems under together/ directory that found
> by Korean translation work.
>
> SeongJae Park (8):
> together: Add missing NBSPs for line numbers
> together: Fix a wrong code line quotation
> together: Fix wrong function name quotations
> together: Add a missing comma
> together: Append `()` suffix to function name quotation
> together: Fix a wrong field citation
> together: Fix a contextual typo
> together: Improve struct field quotation readability
>
> together/applyrcu.tex | 14 +++++++-------
> together/refcnt.tex | 10 +++++-----
> 2 files changed, 12 insertions(+), 12 deletions(-)
Queued and pushed, thank you!
Thanx, Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-10-11 7:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10 23:07 [PATCH 0/8] Fixups for together/ directory SeongJae Park
2016-10-10 23:07 ` [PATCH 1/8] together: Add missing NBSPs for line numbers SeongJae Park
2016-10-10 23:07 ` [PATCH 2/8] together: Fix a wrong code line quotation SeongJae Park
2016-10-10 23:07 ` [PATCH 3/8] together: Fix wrong function name quotations SeongJae Park
2016-10-10 23:07 ` [PATCH 4/8] together: Add a missing comma SeongJae Park
2016-10-10 23:07 ` [PATCH 5/8] together: Append `()` suffix to function name quotation SeongJae Park
2016-10-10 23:07 ` [PATCH 6/8] together: Fix a wrong field citation SeongJae Park
2016-10-10 23:07 ` [PATCH 7/8] together: Fix a contextual typo SeongJae Park
2016-10-10 23:07 ` [PATCH 8/8] together: Improve struct field quotation readability SeongJae Park
2016-10-11 7:31 ` [PATCH 0/8] Fixups for together/ directory Paul E. McKenney
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.