Re: [PATCH v6 0/8] mm/shmem, swap: bugfix and improvement of mTHP swap in

From: Kairui Song
Date: Mon Jul 28 2025 - 22:25:19 EST


Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 于 2025年7月29日周二 06:03写道:
>
> On Mon, 28 Jul 2025 15:52:58 +0800 Kairui Song <ryncsn@xxxxxxxxx> wrote:
>
> > From: Kairui Song <kasong@xxxxxxxxxxx>
> >
> > The current THP swapin path have several problems. It may potentially
> > hang, may cause redundant faults due to false positive swap cache lookup,
> > and it issues redundant Xarray walks. !CONFIG_TRANSPARENT_HUGEPAGE
> > builds may also contain unnecessary THP checks.
> >
> > This series fixes all of the mentioned issues, the code should be more
> > robust and prepared for the swap table series. Now 4 walks is reduced
> > to 3 (get order & confirm, confirm, insert folio), !CONFIG_TRANSPARENT_HUGEPAGE
> > build overhead is also minimized, and comes with a sanity check now.
> >
>
> Below are the changes since v5 of this series. It's a lot, and we're
> now in the merge window.
>
> So I'll merge this into mm.git's mm-new branch. After -rc1 I'll move
> them into mm-unstable, targeting a 6.18-rc1 merge. However at that
> time I'll move the [1/N] patch (which has cc:stable) into mm-hotfixes,
> planning to merge that into 6.17-rcX.
>
> Does this sound OK?

Sounds good to me, thanks!