Skip to contentSkip to conversation

locking/seqlock: Fix grammer error

PATCH Applied Cuda-Chen 2 participants 2 messages Oct 17, 2023 Locking primitives

lore
Share & tools
lore

Cuda-Chen

author
#0 lore raw

PATCH 1/1 locking/seqlock: Fix grammer error

The "neither writes before and after ..." for the description of do_write_seqcount_end should be "neither writes before nor after".

---
 include/linux/seqlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/seqlock.h +1 -1
index e9bd2f65d..734d9c598 100644
@@ -574,7 +574,7 @@ static inline void do_write_seqcount_end(seqcount_t *s)
  * via WRITE_ONCE): a) to ensure the writes become visible to other threads
  * atomically, avoiding compiler optimizations; b) to document which writes are
  * meant to propagate to the reader critical section. This is necessary because
- * neither writes before and after the barrier are enclosed in a seq-writer
+ * neither writes before nor after the barrier are enclosed in a seq-writer
  * critical section that would ensure readers are aware of ongoing writes::
  *
  *	seqcount_t seq;
Signature · 1 line
2.34.1
merge bot Applied
#1 lore raw

[tip: locking/core] locking/seqlock: Fix grammar in comment

The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     184fdf9fc7ae6ae7155768faa48fc609d1a24b7e
Gitweb:        https://git.kernel.org/tip/184fdf9fc7ae6ae7155768faa48fc609d1a24b7e
Author:        Cuda-Chen <[email protected]>
AuthorDate:    Tue, 17 Oct 2023 13:37:03 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Tue, 17 Oct 2023 13:28:12 +02:00

locking/seqlock: Fix grammar in comment

The "neither writes before and after ..." for the description of do_write_seqcount_end() should be "neither writes before nor after".

---
 include/linux/seqlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/seqlock.h +1 -1
index 80f21d2..e92f9d5 100644
@@ -584,7 +584,7 @@ static inline void do_write_seqcount_end(seqcount_t *s)
  * via WRITE_ONCE): a) to ensure the writes become visible to other threads
  * atomically, avoiding compiler optimizations; b) to document which writes are
  * meant to propagate to the reader critical section. This is necessary because
- * neither writes before and after the barrier are enclosed in a seq-writer
+ * neither writes before nor after the barrier are enclosed in a seq-writer
  * critical section that would ensure readers are aware of ongoing writes::
  *
  *	seqcount_t seq;