Re: [PATCH v4 2/3] mm: handle poisoning of pfn without struct pages

From: Andrew Morton
Date: Mon Nov 03 2025 - 21:52:43 EST


On Mon, 3 Nov 2025 19:22:09 +0100 Michal Hocko <mhocko@xxxxxxxx> wrote:

> > Hi Michal, I am trying to replicate what is being done today for non-PFNMAP
> > memory failure in __add_to_kill
> > (https://github.com/torvalds/linux/blob/master/mm/memory-failure.c#L376).
> > For this series, I am inclined to keep it uniform.
>
> Unless there is a very good reason for this code then I would rather not
> rely on an atomic allocation. This just makes the behavior hard to
> predict

I don't think this was addressed in the v5 series.

Yes please, anything we can do to avoid GFP_ATOMIC makes the kernel
more reliable.