Skip to contentSkip to conversation

locking: Mark sentence-ending period as such

PATCH Applied Akira Yokosawa 2 participants 3 messages May 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 locking: Mark sentence-ending period as such

Silence warning from "make punctcheck":

vvv Hint: sentence ending with an uppercase needs "\@." vvv ./locking/locking.tex:2039:traditionally used in scheduling disk I/O.

It is needed because commit 678e6cc3c0f1 ("locking: Cite Dice et al. for hierarchical lock") have added a sentence in the paragraph.

Fixes 678e6cc3c0f1 ("locking: Cite Dice et al. for hierarchical lock")
---
 locking/locking.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
locking/locking.tex +1 -1
index e4ebce51..e0e17253 100644
@@ -2036,7 +2036,7 @@ into account, preferentially granting locks locally, while also taking
 steps to avoid
 starvation~\cite{McKenney02e,radovic03hierarchical,radovic02efficient,BenJackson02,McKenney02d}.
 Many of these can be thought of as analogous to the elevator algorithms
-traditionally used in scheduling disk I/O.
+traditionally used in scheduling disk I/O\@.
 Dice et al.~discuss use of local and global locks in order to transform
 any architecture-oblivious lock into a local/global locking scheme
 that optimizes for the system's structure by providing (for example)

base-commit: 15fc91c0c6dafb32337f505069a0805a4e3c5858

Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 defer: Use \tco{} in inline enum list

Using \co{} in list environments such as enumerate* can confuse LeTeX engines in width estimation due to possible line breaks therein.

It causes an overlap of "," over the closing ")" of "read_seqretry()" in the answer to QQz 9.14.

Use \tco{} to avoid such undesired results.

---
 defer/seqlock.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
defer/seqlock.tex +1 -1
index 5be8ae56..3ed2f483 100644
@@ -141,7 +141,7 @@ will pass to a later call to \co{read_seqretry()}.
 	\begin{enumerate*}[(1)]
 	\item	This added check is a relatively expensive conditional branch,
 	\item	It cannot be substituted for the later check done by
-		\co{read_seqretry()}, which must happen after the
+		\tco{read_seqretry()}, which must happen after the
 		critical section completes, and
 	\item	Sequence locking is intended for read-mostly workloads,
 		which means that this extra check would slow down the
Signature · 1 line
2.34.1
#2 lore raw
In reply to Akira Yokosawa
Quoted 10 lines · Akira Yokosawa

Silence warning from "make punctcheck":

vvv Hint: sentence ending with an uppercase needs "\@." vvv ./locking/locking.tex:2039:traditionally used in scheduling disk I/O.

It is needed because commit 678e6cc3c0f1 ("locking: Cite Dice et al. for hierarchical lock") have added a sentence in the paragraph.

Fixes 678e6cc3c0f1 ("locking: Cite Dice et al. for hierarchical lock")

Apologies, I was clearly in way too much of a hurry...

Queued and pushed both, thank you!!!

Thanx, Paul

Quoted 23 lines
---
 locking/locking.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
locking/locking.tex +1 -1
index e4ebce51..e0e17253 100644
@@ -2036,7 +2036,7 @@ into account, preferentially granting locks locally, while also taking
 steps to avoid
 starvation~\cite{McKenney02e,radovic03hierarchical,radovic02efficient,BenJackson02,McKenney02d}.
 Many of these can be thought of as analogous to the elevator algorithms
-traditionally used in scheduling disk I/O.
+traditionally used in scheduling disk I/O\@.
 Dice et al.~discuss use of local and global locks in order to transform
 any architecture-oblivious lock into a local/global locking scheme
 that optimizes for the system's structure by providing (for example)

base-commit: 15fc91c0c6dafb32337f505069a0805a4e3c5858

Signature · 1 line
2.34.1