Re: seqlock: Cure some more scoped_seqlock() optimization fails

From: Ingo Molnar

Date: Sat Dec 06 2025 - 03:52:18 EST


* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> 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.

BTW., I found a Clang randconfig too that fails the build, so it's
not limited to GCC.

Thanks,

Ingo