Re: [PATCH 4/4] RFC: mm/vmscan: unlock unmapped folios only after the deferred TLB flush
From: Zhang Peng
Date: Sun Nov 29 2026 - 07:44:47 EST
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.
Thanks,
Peng