Skip to contentSkip to conversation

treewide: Fix trivial typos

PATCH In review Akira Yokosawa 2 participants 8 messages Sep 1, 2022 – Sep 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 treewide: Fix trivial typos

---
This is a collection of trivial fixes of typos found by half-manual spell checking in diffs from v2021.12.22a.

I think these are only the tip of iceberg. ;-)

There can be wrong fix(ex) though.
Please examine each of them before committing.

Thanks, Akira
--

 advsync/advsync.tex                  | 4 ++--
 appendix/whymb/whymemorybarriers.tex | 2 +-
 defer/rcuapi.tex                     | 2 +-
 defer/rcuusage.tex                   | 2 +-
 glossary.tex                         | 6 +++---
 indexsee.tex                         | 4 ++--
 locking/locking.tex                  | 2 +-
 together/applyrcu.tex                | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)
advsync/advsync.tex +2 -2
index 340c109562e4..3ff205e237b9 100644
@@ -456,7 +456,7 @@ largely orthogonal to those that form the basis of real-time programming:
 	an NBS algorithm might substitute a non-blocking polling
 	operation.
 	This is fine in theory, but not helpful in practice to real-world
-	programs that requie an element to propagate through the queue
+	programs that require an element to propagate through the queue
 	in a timely fashion.
 \item	Real-time forward-progress guarantees usually apply only
 	in the absence of software bugs.
@@ -585,7 +585,7 @@ can be at least partially redeemed using a number of approaches:
 \item	Run on a non-blocking operating-system kernel~\cite{Cheriton96a}.
 	Such kernels are quite rare, in part because they have
 	traditionally completely failed to provide the hoped-for
-	performance and scalabilty advantages over lock-based kernels.
+	performance and scalability advantages over lock-based kernels.
 	But perhaps you should write one.
 \item	Use facilities such as \co{mlockall()} to avoid page faults,
 	while also ensuring that your program preallocates all the
appendix/whymb/whymemorybarriers.tex +1 -1
index f2cca5d6c112..99c68eac38df 100644
@@ -1762,7 +1762,7 @@ future such problems:
 	all of the CPUs once the DMA completes, but it is much easier
 	and more efficient if the device DMA participates in the
 	cache-coherence protocol, making all of this flushing and
-	invalidating unnecessory.
+	invalidating unnecessary.
 
 \item	External busses that fail to transmit cache-coherence data.
 
defer/rcuapi.tex +1 -1
index 6f6c04681def..8ee54866bbe6 100644
@@ -1106,7 +1106,7 @@ but pointers holding values returned from \co{rcu_dereference()}
 should not be.
 Providing these markings on variables, structure fields, function
 parameters, and return values allows the Linux kernel's \co{sparse}
-tool to detect situtations where RCU-protected pointers are
+tool to detect situations where RCU-protected pointers are
 incorrectly accessed using plain C-language loads and stores.
 
 Debug-object support is automatic for any \apik{rcu_head} structures
defer/rcuusage.tex +1 -1
index 7dfa57c44844..9da0e04c97ef 100644
@@ -1730,7 +1730,7 @@ locking and by static data-structure layout, respectively.
 }\QuickQuizAnswer{
 	Not at all.
 
-	Hazard pointers can be considerd to combine temporal and spatial
+	Hazard pointers can be considered to combine temporal and spatial
 	synchronization in a similar manner.
 	Referring to
 	\cref{lst:defer:Hazard-Pointer Recording and Clearing},
glossary.tex +3 -3
index 87db763b7be4..accd5e9c9de8 100644
@@ -239,9 +239,9 @@
 	linear speedups as threads are added (assuming sufficient
 	CPUs are available).
 \item[\IXGalth{Energy Efficiency}{energy}{efficiency}:]
-	Shorthand for ``energy-efficienct use'' in which the goal is to
+	Shorthand for ``energy-efficient use'' in which the goal is to
 	carry out a given computation with reduced energy consumption.
-	Sublinear scalabilty can be an obstacle to energy-efficient use
+	Sublinear scalability can be an obstacle to energy-efficient use
 	of a multicore system.
 \item[Epoch-Based Reclamation (EBR):]\glsuseriii{ebr}
 	An \acr{rcu} implementation style put forward by
@@ -270,7 +270,7 @@
 	scalability.
 \item[\IXG{Forward-Progress Guarantee}:]
 	Algorithms or programs that guarantee that execution will
-	progress at some rate under specfied conditions.
+	progress at some rate under specified conditions.
 	Academic forward-progress guarantees are grouped into a
 	formal hierarchy shown in
 	\cref{sec:advsync:Non-Blocking Synchronization}.
indexsee.tex +2 -2
index c7fea66b2871..bd82fa1debfd 100644
@@ -13,7 +13,7 @@
 \index{Exclusive lock|see{Lock, exclusive}}
 \index{Full memory barrier|see{Memory barrier, full}}
 \index{Fully associative cache|see{Cache, fully associative}}
-\index{Grace-priod latency|see{Latency, grace-period}}
+\index{Grace-period latency|see{Latency, grace-period}}
 \index{Memory consistency|see{Consistency, memory}}
 \index{Memory latency|see{Latency, memory}}
 \index{Memory-barrier latency|see{Latency, memory-barrier}}
@@ -26,7 +26,7 @@
 \index{Reader-writer lock|see{Lock, reader-writer}}
 \index{Scheduling latency|see{Latency, scheduling}}
 \index{Sequence lock|see{Lock, sequence}}
-\index{Sequencial consistency|see{Consistency, sequencial}}
+\index{Sequential consistency|see{Consistency, sequential}}
 \index{Weak consistency|see{Consistency, weak}}
 \index{Write memory barrier|see{Memory barrier, write}}
 \index{Write miss|see{Cache miss, write}}
locking/locking.tex +1 -1
index 4bc03f26a960..ccfbb9b394e9 100644
@@ -1137,7 +1137,7 @@ Of course, locks partition time instead of sawing wood,\footnote{
 but just like sawing wood, using locks to partition time wastes some of
 that time due to lock overhead and (worse yet) lock contention.
 One important difference is that if someone saws a board into too-small
-pieces, the resuting conversion of most of that board into sawdust will
+pieces, the resulting conversion of most of that board into sawdust will
 be immediately obvious.
 In contrast, it is not always obvious that a given lock acquisition
 is wasting excessive amounts of time.
together/applyrcu.tex +1 -1
index 2a5a3c1248f6..1c9b1b7a23cd 100644
@@ -815,7 +815,7 @@ way of stopping in the middle and resuming later.
 For example, in Linux kernel v5.16, the \co{khugepaged_scan_file()}
 function checks to see if some other task needs the current CPU
 using \co{need_resched()}, and if so invokes \co{xas_pause()} to
-adjust the travesal's iterator appropriately, and then invokes
+adjust the traversal's iterator appropriately, and then invokes
 \co{cond_resched_rcu()} to yield the CPU\@.
 In turn, the \co{cond_resched_rcu()} function invokes \co{rcu_read_unlock()},
 \co{cond_resched()}, and finally \co{rcu_read_lock()} to drop out of

base-commit: 729ed701fa72c1445fc8575b5e27fccb55378dbc

Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 Fix punctuation around footnotes

Perfbook's convention is to put footnotes after punctuation marks. There are a couple of footnotes placed in front of commas.

Fix them.

While here, fill in a missing comma in front of a footnote in datastruct so that the phrase "even with today's large-memory systems" reads as such.

---
I'm thinking of adding rules to catch this sort of inconsistencies in punctcheck.pl.
The one in datastuct would be hard for such a dumb script, though.

Thanks, Akira
--

 datastruct/datastruct.tex     | 2 +-
 intro/intro.tex               | 4 ++--
 toolsoftrade/toolsoftrade.tex | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
datastruct/datastruct.tex +1 -1
index 714795f7c5ed..2b802e0518a5 100644
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.
intro/intro.tex +2 -2
index e39ea652ba0a..2c7ad97b8111 100644
@@ -353,7 +353,7 @@ This change in focus is due to the fact that, although \IXr{Moore's Law}
 continues to deliver increases in transistor density, it has ceased to
 provide the traditional single-threaded performance increases.
 This can be seen in
-\cref{fig:intro:Clock-Frequency Trend for Intel CPUs}\footnote{
+\cref{fig:intro:Clock-Frequency Trend for Intel CPUs},\footnote{
 	This plot shows clock frequencies for newer CPUs theoretically
 	capable of retiring one or more instructions per clock, and MIPS
 	(millions of instructions per second, usually from the old
@@ -366,7 +366,7 @@ This can be seen in
 	Furthermore, the benchmarks commonly used on the older CPUs
 	are obsolete, and it is difficult to run the newer benchmarks
 	on systems containing the old CPUs, in part because it is hard
-	to find working instances of the old CPUs.},
+	to find working instances of the old CPUs.}
 which shows that writing single-threaded code and simply waiting
 a year or two for the CPUs to catch up may no longer be an option.
 Given the recent trends on the part of all major manufacturers towards
toolsoftrade/toolsoftrade.tex +2 -2
index dc24571a1163..97f8f2d3ecf9 100644
@@ -2488,8 +2488,8 @@ per-CPU operations.
 shows this book's per-thread-variable API, which is patterned
 after the Linux kernel's per-CPU-variable API\@.
 This API provides the per-thread equivalent of global variables.
-Although this API is, strictly speaking, not necessary\footnote{
-	You could instead use \apig{__thread} or \apic{_Thread_local}.},
+Although this API is, strictly speaking, not necessary,\footnote{
+	You could instead use \apig{__thread} or \apic{_Thread_local}.}
 it can provide a good userspace analogy to Linux kernel code.
 
 \begin{listing}
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH -perfbook 2/2] Fix punctuation around footnotes

Quoted 26 lines · Akira Yokosawa

Perfbook's convention is to put footnotes after punctuation marks. There are a couple of footnotes placed in front of commas.

Fix them.

While here, fill in a missing comma in front of a footnote in datastruct so that the phrase "even with today's large-memory systems" reads as such.

---
I'm thinking of adding rules to catch this sort of inconsistencies in punctcheck.pl.
The one in datastuct would be hard for such a dumb script, though.

Thanks, Akira
--

 datastruct/datastruct.tex     | 2 +-
 intro/intro.tex               | 4 ++--
 toolsoftrade/toolsoftrade.tex | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
datastruct/datastruct.tex +0 -0
index 714795f7c5ed..2b802e0518a5 100644

datastruct/datastruct.tex the one hand, and performance and simplicity on the other. · line 2136

Quoted 6 lines
datastruct/datastruct.tex +1 -1
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}

Paul, you might want to update the text of this footnote. Today's smartphones actually have gigabytes of memory...

Thanks, Akira

Quoted 2 lines
datastruct/datastruct.tex +0 -0
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.

[...]

#3 lore raw

Re: [PATCH -perfbook 2/2] Fix punctuation around footnotes

Quoted 22 lines · Akira Yokosawa
Quoted 21 lines · Akira Yokosawa

Perfbook's convention is to put footnotes after punctuation marks. There are a couple of footnotes placed in front of commas.

Fix them.

While here, fill in a missing comma in front of a footnote in datastruct so that the phrase "even with today's large-memory systems" reads as such.

---
I'm thinking of adding rules to catch this sort of inconsistencies in punctcheck.pl.
The one in datastuct would be hard for such a dumb script, though.

Thanks, Akira
--

 datastruct/datastruct.tex     | 2 +-
 intro/intro.tex               | 4 ++--
 toolsoftrade/toolsoftrade.tex | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
Quoted 13 lines

datastruct/datastruct.tex the one hand, and performance and simplicity on the other. · line 2136

Quoted 11 lines
datastruct/datastruct.tex +1 -1
index 714795f7c5ed..2b802e0518a5 100644
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}

Paul, you might want to update the text of this footnote. Today's smartphones actually have gigabytes of memory...

Indeed, that was supposed to serve as an example. For example, back in the day, one might respond to the assertion "All ports serving ocean-going ships are saltwater ports" with "Portland, Oregon, anyone?", thus sarcastically pointing out the fact that the Columbia and Willamette rivers between the Pacific Ocean and the Port of Portland's Terminal 6 can both accommodate the ocean-going ships of the 1970s. (Probably not today's much larger ships, though. Plus the Port of Portland isn't what it used to be.)

But you are right, that is not going to be at all clear to all native English speakers, let alone non-native English speakers.

So I eliminated that footnote and rewrote that sentence as follows:

However, even though the year~2022's pocket-sized smartphones sport many gigabytes of memory and its mid-range servers sport terabytes, it is sometimes necessary to take extreme measures to reduce memory overhead.

Does that help?

Thanx, Paul

Quoted 5 lines

Thanks, Akira

Quoted 2 lines
datastruct/datastruct.tex +0 -0
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.

[...]

#4 lore raw

Re: [PATCH -perfbook 2/2] Fix punctuation around footnotes

Quoted 2 lines · Paul E. McKenney
Quoted 1 line · Akira Yokosawa

On Thu, 1 Sep 2022 22:47:22 +0900, Akira Yokosawa wrote:

[...]

Quoted 12 lines
Quoted 11 lines

datastruct/datastruct.tex the one hand, and performance and simplicity on the other. · line 2136

Quoted 9 lines
datastruct/datastruct.tex +1 -1
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}

Paul, you might want to update the text of this footnote. Today's smartphones actually have gigabytes of memory...

Quoted 8 lines

Indeed, that was supposed to serve as an example. For example, back in the day, one might respond to the assertion "All ports serving ocean-going ships are saltwater ports" with "Portland, Oregon, anyone?", thus sarcastically pointing out the fact that the Columbia and Willamette rivers between the Pacific Ocean and the Port of Portland's Terminal 6 can both accommodate the ocean-going ships of the 1970s. (Probably not today's much larger ships, though. Plus the Port of Portland isn't what it used to be.)

Ah, now I think I see the sarcasm.

Quoted 3 lines

But you are right, that is not going to be at all clear to all native
English speakers, let alone non-native English speakers.Looking at the git history, this particular footnote once read:

Smartphones with hundreds of gigabytes of memory, anyone?

after commit 6d4f16cc4c5b ("datastruct: Update an outdated footnote"). You reverted the change in commit 0d4e8640abf ("datastruct: Updates and wordsmithing, take two.").

Weren't you confused when you took 6d4f16cc4c5b ???

Quoted 9 lines

So I eliminated that footnote and rewrote that sentence as follows:

However, even though the year~2022's pocket-sized smartphones sport many gigabytes of memory and its mid-range servers sport terabytes, it is sometimes necessary to take extreme measures to reduce memory overhead.

Does that help?

Yes. It is clearer now and no worry of confusion.

Thanks, Akira

Quoted 8 lines

Thanx, Paul

Quoted 5 lines

Thanks, Akira

Quoted 2 lines
datastruct/datastruct.tex +0 -0
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.

[...]

#5 lore raw

Re: [PATCH -perfbook 2/2] Fix punctuation around footnotes

Quoted 32 lines · Akira Yokosawa
Quoted 2 lines · Paul E. McKenney
Quoted 1 line · Akira Yokosawa

On Thu, 1 Sep 2022 22:47:22 +0900, Akira Yokosawa wrote:

[...]

Quoted 12 lines
Quoted 11 lines

datastruct/datastruct.tex the one hand, and performance and simplicity on the other. · line 2136

Quoted 9 lines
datastruct/datastruct.tex +1 -1
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}

Paul, you might want to update the text of this footnote. Today's smartphones actually have gigabytes of memory...

Quoted 8 lines

Indeed, that was supposed to serve as an example. For example, back in the day, one might respond to the assertion "All ports serving ocean-going ships are saltwater ports" with "Portland, Oregon, anyone?", thus sarcastically pointing out the fact that the Columbia and Willamette rivers between the Pacific Ocean and the Port of Portland's Terminal 6 can both accommodate the ocean-going ships of the 1970s. (Probably not today's much larger ships, though. Plus the Port of Portland isn't what it used to be.)

Ah, now I think I see the sarcasm.

Quoted 3 lines

But you are right, that is not going to be at all clear to all native English speakers, let alone non-native English speakers.

Looking at the git history, this particular footnote once read:

Quoted 7 lines

Smartphones with hundreds of gigabytes of memory, anyone?

after commit 6d4f16cc4c5b ("datastruct: Update an outdated footnote"). You reverted the change in commit 0d4e8640abf ("datastruct: Updates and wordsmithing, take two.").

Weren't you confused when you took 6d4f16cc4c5b ???

Let's see...

This January 2017 webpage announces an 8GB smartphone:

https://www.tweaktown.com/news/55754/zenfone-ar-worlds-first-smartphone-8gb-ram/index.html

And this smartphone history page repeats a claim that the first 1GB smartphone was in 2011:

https://www.androidauthority.com/smartphone-firsts-946979/

So when I took that patch in late 2018, that footnote was definitely in need of an update. On the other hand, I am still a little surprised that even 100MB would fit into my pocket and run off of a tiny battery.

Except that for someone like me, who once used a refrigerator-sized computer having ferrite-core memory with 4K of 12-bit words, the "hundreds of megabytes" is more effective than the "gigabytes". Except that most people reading this book won't have been alive when I last used that system, and for them a smartphone with less than a gigabyte would probably be ridiculous in the extreme, and thus sarcastic, but in the opposite sense than I intended.

So maybe you are right about me having been confused when I took that patch back in 2018, when I did that wordsmithing back in 2021, and whenever it changed back to "gigabytes". And perhaps that confusion was me thinking that it was OK to keep a footnote that is so subject to change over time and so vulnerable to difference in interpretation. ;-)

Quoted 10 lines
Quoted 8 lines

So I eliminated that footnote and rewrote that sentence as follows:

However, even though the year~2022's pocket-sized smartphones sport many gigabytes of memory and its mid-range servers sport terabytes, it is sometimes necessary to take extreme measures to reduce memory overhead.

Does that help?

Yes. It is clearer now and no worry of confusion.

Very good, and thank you for your review and comments.

Thanx, Paul

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
datastruct/datastruct.tex +0 -0
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.

[...]

#6 lore raw

Re: [PATCH -perfbook 2/2] Fix punctuation around footnotes

In reply to Akira Yokosawa
Quoted 9 lines · Akira Yokosawa

Perfbook's convention is to put footnotes after punctuation marks. There are a couple of footnotes placed in front of commas.

Fix them.

While here, fill in a missing comma in front of a footnote in datastruct so that the phrase "even with today's large-memory systems" reads as such.

Good eyes, applied, thank you!

Quoted 4 lines

---
I'm thinking of adding rules to catch this sort of inconsistencies in punctcheck.pl.
The one in datastuct would be hard for such a dumb script, though.

Automation is a good thing, but there are always limits. The current scripts do frequently catch things for me, so that is good.

Back on the misspellings, there is a list of commonly misspelled words in the Linux kernel's scripts/spelling.txt file. This list is used by scripts/checkpatch.pl, which often catches my commit-log and comment spelling errors.

Just a thought, though.

Thanx, Paul

Quoted 61 lines

Thanks, Akira
--

 datastruct/datastruct.tex     | 2 +-
 intro/intro.tex               | 4 ++--
 toolsoftrade/toolsoftrade.tex | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
datastruct/datastruct.tex +1 -1
index 714795f7c5ed..2b802e0518a5 100644
@@ -2132,7 +2132,7 @@ the one hand, and performance and simplicity on the other.
 Fortunately, the relatively large memories available on modern
 systems have allowed us to prioritize performance and simplicity
 over memory overhead.
-However, even with today's large-memory systems\footnote{
+However, even with today's large-memory systems,\footnote{
 	Smartphones with gigabytes of memory, anyone?}
 it is sometimes necessary to take extreme measures to reduce
 memory overhead.
intro/intro.tex +2 -2
index e39ea652ba0a..2c7ad97b8111 100644
@@ -353,7 +353,7 @@ This change in focus is due to the fact that, although \IXr{Moore's Law}
 continues to deliver increases in transistor density, it has ceased to
 provide the traditional single-threaded performance increases.
 This can be seen in
-\cref{fig:intro:Clock-Frequency Trend for Intel CPUs}\footnote{
+\cref{fig:intro:Clock-Frequency Trend for Intel CPUs},\footnote{
 	This plot shows clock frequencies for newer CPUs theoretically
 	capable of retiring one or more instructions per clock, and MIPS
 	(millions of instructions per second, usually from the old
@@ -366,7 +366,7 @@ This can be seen in
 	Furthermore, the benchmarks commonly used on the older CPUs
 	are obsolete, and it is difficult to run the newer benchmarks
 	on systems containing the old CPUs, in part because it is hard
-	to find working instances of the old CPUs.},
+	to find working instances of the old CPUs.}
 which shows that writing single-threaded code and simply waiting
 a year or two for the CPUs to catch up may no longer be an option.
 Given the recent trends on the part of all major manufacturers towards
toolsoftrade/toolsoftrade.tex +2 -2
index dc24571a1163..97f8f2d3ecf9 100644
@@ -2488,8 +2488,8 @@ per-CPU operations.
 shows this book's per-thread-variable API, which is patterned
 after the Linux kernel's per-CPU-variable API\@.
 This API provides the per-thread equivalent of global variables.
-Although this API is, strictly speaking, not necessary\footnote{
-	You could instead use \apig{__thread} or \apic{_Thread_local}.},
+Although this API is, strictly speaking, not necessary,\footnote{
+	You could instead use \apig{__thread} or \apic{_Thread_local}.}
 it can provide a good userspace analogy to Linux kernel code.
 
 \begin{listing}
Signature · 1 line
2.25.1
#7 lore raw
In reply to Akira Yokosawa
Quoted 6 lines · Akira Yokosawa

---
This is a collection of trivial fixes of typos found by half-manual spell checking in diffs from v2021.12.22a.

I think these are only the tip of iceberg. ;-)

I am sure that you are quite correct. ;-)

Quoted 2 lines

There can be wrong fix(ex) though.
Please examine each of them before committing.

They all look good to me, thank you! Applied.

Thanx, Paul

Quoted 151 lines

Thanks, Akira
--

 advsync/advsync.tex                  | 4 ++--
 appendix/whymb/whymemorybarriers.tex | 2 +-
 defer/rcuapi.tex                     | 2 +-
 defer/rcuusage.tex                   | 2 +-
 glossary.tex                         | 6 +++---
 indexsee.tex                         | 4 ++--
 locking/locking.tex                  | 2 +-
 together/applyrcu.tex                | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)
advsync/advsync.tex +2 -2
index 340c109562e4..3ff205e237b9 100644
@@ -456,7 +456,7 @@ largely orthogonal to those that form the basis of real-time programming:
 	an NBS algorithm might substitute a non-blocking polling
 	operation.
 	This is fine in theory, but not helpful in practice to real-world
-	programs that requie an element to propagate through the queue
+	programs that require an element to propagate through the queue
 	in a timely fashion.
 \item	Real-time forward-progress guarantees usually apply only
 	in the absence of software bugs.
@@ -585,7 +585,7 @@ can be at least partially redeemed using a number of approaches:
 \item	Run on a non-blocking operating-system kernel~\cite{Cheriton96a}.
 	Such kernels are quite rare, in part because they have
 	traditionally completely failed to provide the hoped-for
-	performance and scalabilty advantages over lock-based kernels.
+	performance and scalability advantages over lock-based kernels.
 	But perhaps you should write one.
 \item	Use facilities such as \co{mlockall()} to avoid page faults,
 	while also ensuring that your program preallocates all the
appendix/whymb/whymemorybarriers.tex +1 -1
index f2cca5d6c112..99c68eac38df 100644
@@ -1762,7 +1762,7 @@ future such problems:
 	all of the CPUs once the DMA completes, but it is much easier
 	and more efficient if the device DMA participates in the
 	cache-coherence protocol, making all of this flushing and
-	invalidating unnecessory.
+	invalidating unnecessary.
 
 \item	External busses that fail to transmit cache-coherence data.
 
defer/rcuapi.tex +1 -1
index 6f6c04681def..8ee54866bbe6 100644
@@ -1106,7 +1106,7 @@ but pointers holding values returned from \co{rcu_dereference()}
 should not be.
 Providing these markings on variables, structure fields, function
 parameters, and return values allows the Linux kernel's \co{sparse}
-tool to detect situtations where RCU-protected pointers are
+tool to detect situations where RCU-protected pointers are
 incorrectly accessed using plain C-language loads and stores.
 
 Debug-object support is automatic for any \apik{rcu_head} structures
defer/rcuusage.tex +1 -1
index 7dfa57c44844..9da0e04c97ef 100644
@@ -1730,7 +1730,7 @@ locking and by static data-structure layout, respectively.
 }\QuickQuizAnswer{
 	Not at all.
 
-	Hazard pointers can be considerd to combine temporal and spatial
+	Hazard pointers can be considered to combine temporal and spatial
 	synchronization in a similar manner.
 	Referring to
 	\cref{lst:defer:Hazard-Pointer Recording and Clearing},
glossary.tex +3 -3
index 87db763b7be4..accd5e9c9de8 100644
@@ -239,9 +239,9 @@
 	linear speedups as threads are added (assuming sufficient
 	CPUs are available).
 \item[\IXGalth{Energy Efficiency}{energy}{efficiency}:]
-	Shorthand for ``energy-efficienct use'' in which the goal is to
+	Shorthand for ``energy-efficient use'' in which the goal is to
 	carry out a given computation with reduced energy consumption.
-	Sublinear scalabilty can be an obstacle to energy-efficient use
+	Sublinear scalability can be an obstacle to energy-efficient use
 	of a multicore system.
 \item[Epoch-Based Reclamation (EBR):]\glsuseriii{ebr}
 	An \acr{rcu} implementation style put forward by
@@ -270,7 +270,7 @@
 	scalability.
 \item[\IXG{Forward-Progress Guarantee}:]
 	Algorithms or programs that guarantee that execution will
-	progress at some rate under specfied conditions.
+	progress at some rate under specified conditions.
 	Academic forward-progress guarantees are grouped into a
 	formal hierarchy shown in
 	\cref{sec:advsync:Non-Blocking Synchronization}.
indexsee.tex +2 -2
index c7fea66b2871..bd82fa1debfd 100644
@@ -13,7 +13,7 @@
 \index{Exclusive lock|see{Lock, exclusive}}
 \index{Full memory barrier|see{Memory barrier, full}}
 \index{Fully associative cache|see{Cache, fully associative}}
-\index{Grace-priod latency|see{Latency, grace-period}}
+\index{Grace-period latency|see{Latency, grace-period}}
 \index{Memory consistency|see{Consistency, memory}}
 \index{Memory latency|see{Latency, memory}}
 \index{Memory-barrier latency|see{Latency, memory-barrier}}
@@ -26,7 +26,7 @@
 \index{Reader-writer lock|see{Lock, reader-writer}}
 \index{Scheduling latency|see{Latency, scheduling}}
 \index{Sequence lock|see{Lock, sequence}}
-\index{Sequencial consistency|see{Consistency, sequencial}}
+\index{Sequential consistency|see{Consistency, sequential}}
 \index{Weak consistency|see{Consistency, weak}}
 \index{Write memory barrier|see{Memory barrier, write}}
 \index{Write miss|see{Cache miss, write}}
locking/locking.tex +1 -1
index 4bc03f26a960..ccfbb9b394e9 100644
@@ -1137,7 +1137,7 @@ Of course, locks partition time instead of sawing wood,\footnote{
 but just like sawing wood, using locks to partition time wastes some of
 that time due to lock overhead and (worse yet) lock contention.
 One important difference is that if someone saws a board into too-small
-pieces, the resuting conversion of most of that board into sawdust will
+pieces, the resulting conversion of most of that board into sawdust will
 be immediately obvious.
 In contrast, it is not always obvious that a given lock acquisition
 is wasting excessive amounts of time.
together/applyrcu.tex +1 -1
index 2a5a3c1248f6..1c9b1b7a23cd 100644
@@ -815,7 +815,7 @@ way of stopping in the middle and resuming later.
 For example, in Linux kernel v5.16, the \co{khugepaged_scan_file()}
 function checks to see if some other task needs the current CPU
 using \co{need_resched()}, and if so invokes \co{xas_pause()} to
-adjust the travesal's iterator appropriately, and then invokes
+adjust the traversal's iterator appropriately, and then invokes
 \co{cond_resched_rcu()} to yield the CPU\@.
 In turn, the \co{cond_resched_rcu()} function invokes \co{rcu_read_unlock()},
 \co{cond_resched()}, and finally \co{rcu_read_lock()} to drop out of

base-commit: 729ed701fa72c1445fc8575b5e27fccb55378dbc

Signature · 1 line
2.25.1