Skip to content

Commit 184fdf9

Browse files
Cuda-ChenIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent dcc1345 commit 184fdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/seqlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ static inline void do_write_seqcount_end(seqcount_t *s)
584584
* via WRITE_ONCE): a) to ensure the writes become visible to other threads
585585
* atomically, avoiding compiler optimizations; b) to document which writes are
586586
* meant to propagate to the reader critical section. This is necessary because
587-
* neither writes before and after the barrier are enclosed in a seq-writer
587+
* neither writes before nor after the barrier are enclosed in a seq-writer
588588
* critical section that would ensure readers are aware of ongoing writes::
589589
*
590590
* seqcount_t seq;

0 commit comments

Comments
 (0)