]> Gentwo Git Trees - linux/.git/commit
seqlock: Cure some more scoped_seqlock() optimization fails
authorPeter Zijlstra <peterz@infradead.org>
Thu, 4 Dec 2025 10:43:32 +0000 (11:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Dec 2025 08:53:05 +0000 (09:53 +0100)
commit90dfeef1cd38dff19f8b3a752d13bfd79f0f7694
treeba012f48cbaa7e6cafe80f31ee4a0b7af8a50bc0
parent24bc5ea5c01a7695a1308ac24435810855ec71c9
seqlock: Cure some more scoped_seqlock() optimization fails

Arnd reported an x86 randconfig using gcc-15 tripped over
__scoped_seqlock_bug(). Turns out GCC chose not to inline the
scoped_seqlock helper functions and as such was not able to optimize
properly.

[ mingo: Clang fails the build too in some circumstances. ]

Reported-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: https://patch.msgid.link/20251204104332.GG2528459@noisy.programming.kicks-ass.net
include/linux/seqlock.h