Re: [PATCH 4/4] RFC: mm/vmscan: unlock unmapped folios only after the deferred TLB flush
From: David Hildenbrand (Arm)
Date: Tue Dec 01 2026 - 10:34:33 EST
On 11/29/26 13:44, Zhang Peng wrote:
> On Sun, Nov 29, 2026 at 12:30:19PM +0100, David Hildenbrand (Arm) wrote:
>> Yes, please do cleanups on top once we have it fixed. This all needs to be
>> separately cleanly into stages.
>
> Thanks for working on this, David! I agree with getting the correctness issues
> fixed first.
>
> I'll rebase my previous cleanup patches on top of your series to separate the
> reclaim stages more cleanly and reuse the folio checks where possible.
>
> I'll also look into avoiding unnecessary folio unlock/relock operations and
> evaluate the performance impact of keeping folios locked across the batch.
>
> Hopefully, this will also make it easier to unify batching in the reclaim path
> later.
Appreciated! I'll send out a new version soon. Thanks for cleaning up my mess
afterwards :D
--
Cheers,
David