Re: [RFC PATCH 10/16] mm/madvise: let madvise_dontneed_single_vma() caller batches tlb flushes

From: SeongJae Park
Date: Thu Mar 06 2025 - 14:10:34 EST


On Thu, 6 Mar 2025 10:36:08 -0800 Shakeel Butt <shakeel.butt@xxxxxxxxx> wrote:

> On Wed, Mar 05, 2025 at 10:16:05AM -0800, SeongJae Park wrote:
> > Update madvise_dontneed_single_vma() function so that the caller can
> > pass an mmu_gather object that should be initialized and will be
> > finished outside, for batched tlb flushes. Also modify
> > madvise_dontneed_single_vma() internal code to support such usage by
> > skipping the initialization and finishing of self-allocated mmu_gather
> > object if it received a valid mmu_gather object.
> >
> > Signed-off-by: SeongJae Park <sj@xxxxxxxxxx>
>
> Please squash patch 10 and 11.

I will do so in the next version.


Thanks,
SJ