lkml.org 
[lkml]   [2023]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectseqlock:do_raw_write_seqcount_end smp_wmb
hi, Peter:
I not quit sure on this, but is that a type error in
do_raw_write_seqcount_end here ?
is this change necessary to match with do_raw_write_seqcount_begin ?


diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index 987a59d977c5..eb8807ed3a00 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -486,8 +486,8 @@ do {
\

static inline void do_raw_write_seqcount_end(seqcount_t *s)
{
- smp_wmb();
s->sequence++;
+ smp_wmb();
kcsan_nestable_atomic_end();
}

to match with

static inline void do_raw_write_seqcount_begin(seqcount_t *s)
{
kcsan_nestable_atomic_begin();
s->sequence++;
smp_wmb();
}


BR
TNT

\
 
 \ /
  Last update: 2023-08-24 03:09    [W:0.419 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site