Re: [PATCH 0/2] mm: memory-failure: fix HWPoison flag race with non-atomic page flag ops
From: Andi Kleen
Date: Mon Jun 29 2026 - 16:56:10 EST
> > Or if there are actually more performant alternatives that we could use. (I
> > still doubt that using atomics is ok in general)
>
> Right now I'm thinking of looking at something like stop_machine maybe.
There can be (rare) cases where yoy get a lot of memory errors in a
flood. While memory-failure doesn't need to be particularly optimized,
it shouldn't be excessively slow or impact the rest of the machine.
stop_machine is a big hammer that is likely to violate most of this.
-Andi