Re: [PATCH 0/2] mm: memory-failure: fix HWPoison flag race with non-atomic page flag ops
From: Michael S. Tsirkin
Date: Mon Jun 29 2026 - 17:55:38 EST
On Mon, Jun 29, 2026 at 11:22:11PM +0200, David Hildenbrand (Arm) wrote:
> [...]
>
> >
> > And again, I'm really not sure fixing a theoretical race when memory
> > is failing is worth slowing the world by 0.1-1% for.
> >
>
> Fully agreed.
Let's say, we just send every bad page through MF machinery X times,
and hope the chances of a race are reduced enough not to matter.
WDYT?
> I was hoping RCU was cheaper (I mean, we were once told that RCU
> read side locking is essentially for free ... well in some configs :) )
It seems to be, just not to the level where you stick this around
each memory allocation.
--
MST