On Fri, May 31, 2024, at 18:32, Linus Torvalds wrote: > On Fri, 31 May 2024 at 08:48, Arnd Bergmann <arnd@xxxxxxxx> wrote: > > and the solution would be to make a __WRITE_ONCE() that then uses > "sizeof()" to decide at compile-time whether it can just do it as a > regular write, or whether it needs to do it as a LL/SC loop. Just to clarify: I did not mean to suggest we actually apply the patch from my email or anything close to it, this was meant as a demonstration for instances that are likely broken but each one would need to be individually documented if we were to try to fix them, as Maciej asked about what it would take. My "alpha: drop pre-EV56 support" actually removed two workarounds for non-BWX alphas, and neither of them even uses WRITE_ONCE, so these would also have gone unnoticed by any changes we do to WRITE_ONCE. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/?id=a4184174be36369c3af8d937e165f28a43ef1e02 Arnd