summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCuda-Chen <clh960524@gmail.com>2023-10-17 13:37:03 +0800
committerIngo Molnar <mingo@kernel.org>2023-10-17 13:28:12 +0200
commit184fdf9fc7ae6ae7155768faa48fc609d1a24b7e (patch)
treef02dfa5ab8f6a74c05a9b46064c95c3d6b144303 /include
parentdcc134510eefaec6dda4fe71ab824f0300ed9f9f (diff)
downloadlinux-stable-184fdf9fc7ae6ae7155768faa48fc609d1a24b7e.tar.gz
linux-stable-184fdf9fc7ae6ae7155768faa48fc609d1a24b7e.tar.bz2
linux-stable-184fdf9fc7ae6ae7155768faa48fc609d1a24b7e.zip
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". Signed-off-by: Cuda-Chen <clh960524@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231017053703.11312-1-clh960524@gmail.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/seqlock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index 80f21d2ca2aa..e92f9d5577ba 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -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;