Re: [PATCH v5 14/19] mm, swap: cleanup swap entry management workflow
From: Chris Li
Date: Fri Jan 16 2026 - 05:57:45 EST
On Wed, Jan 14, 2026 at 2:29 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, 15 Jan 2026 00:53:41 +0800 Kairui Song <ryncsn@xxxxxxxxx> wrote:
>
> > Is it convenient for you to squash this attached fix into this patch?
>
> Done, below
>
> > That's the two issues from Chris Mason and Lai Yi combined in a clean
> > to apply format, only 3 lines change.
>
> Let's cc them!
>
> > There might be minor conflict by removing the WARN_ON in two following
> > patches, but should be easy to resolve. I can send a v6 if that's
> > troublesome.
>
> All fixed up, thanks.
>
>
> From: Kairui Song <kasong@xxxxxxxxxxx>
> Subject: mm, swap: fix locking and leaking with hibernation snapshot releasing
> Date: Thu, 15 Jan 2026 00:15:27 +0800
>
> fix leak, per Chris Mason. Remove WARN_ON, per Lai Yi
That is a great catch. Thanks.
>
> Link: https://lkml.kernel.org/r/CAMgjq7AUz10uETVm8ozDWcB3XohkOqf0i33KGrAquvEVvfp5cg@xxxxxxxxxxxxxx
> Signed-off-by: Kairui Song <kasong@xxxxxxxxxxx>
> Cc: Lai Yi <yi1.lai@xxxxxxxxxxxxxxx>
> Cc: Chris Mason <clm@xxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
That small fix looks good to me.
Chris