On Sat, 17 Feb 2024 at 09:30, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > And yes, using "atomic_long_t" for stashed is a crime against > humanity. It's also entirely pointless. There are no actual atomic > operations that the code wants [..] Just to clarify: the reason to use 'atomic_long_t' is for the _arithmetic_ atomic ops. So the "inc/dec/inc_and_test" etc. The code wants none of that, and can make do with the regular smp-safe cmpxchg operation that works on any word-sized type. Linus