Re: [PATCH v4 0/3] mm/swap, PM: hibernate: fix swapoff race and optimize swap

Andrew Morton
2026-03-17T19:16:33Z

On Wed, 18 Mar 2026 03:13:15 +0900 Youngjun Park <youngjun.park@lge.com> wrote:

> Currently, in the uswsusp path, only the swap type value is retrieved at
> lookup time without holding a reference. If swapoff races after the type
> is acquired, subsequent slot allocations operate on a stale swap device.

Has this race been experienced or at least demonstrated? Or is this
patchset derived from reading the code?