Re: [PATCH 01/13] mm/mmap: free gathered pages before MMF_OOM_SKIP

From: Lorenzo Stoakes (ARM)

Date: Thu Nov 12 2026 - 09:52:50 EST


On Thu, Nov 12, 2026 at 03:12:15PM +0100, Michal Hocko wrote:
> On Thu 12-11-26 13:48:53, Michal Hocko wrote:
> > > This only matters for the OOM victim, hence reinstating MMF_OOM_VICTIM, which
> > > made the patch _way_ smaller than the one proposed :)
> >
> > Should we simply do that flushing unconditionally before setting MMF_OOM_VICTIM
> > then?
>
> Sorry, I was caught in calls and didn't get much time to think about
> this. I have only now found some time to look into that and to do the
> above we would need to make tlb_batch_list_free visible and conditional.
> Which is a bit of undertaking, not anything major but still kind of
> ugly. So your solution seems better in the end.

No worries, and yeah, I went through this one a fair bit to try to find the best
way of doing it but I think this is the least invasive way. Tricky one!

>
> Please clarify the changelog wording to be really about this and with
> that

Will do!

> Acked-by: Michal Hocko <mnhocko@xxxxxxxx

Thanks :)

>
> Thanks!
> --
> Michal Hocko
> SUSE Labs

--
Cheers, Lorenzo