Re: [PATCH v4 05/19] selftests/mm: make the swap cases' swapout reliable

From: Kiryl Shutsemau

Date: Sun Aug 23 2026 - 15:52:00 EST


On Thu, Aug 20, 2026 at 11:40:35AM +0300, Mike Rapoport wrote:
> > Ask again for up to two seconds, with the range held out of the daemon's
> > reach while asking. The collapse each case runs next puts MADV_HUGEPAGE
> > back, so only the setup is affected.
>
> "Retry several times for up to two seconds meanwhile holding the range
> out of the khugepaged reach. The collapse each case runs next restores
> MADV_NOHUGEPAGE, so only setup is affected"

Small correction: it restores `MADV_HUGEPAGE` -- `wait_for_scan()` sets
that before it waits. `MADV_NOHUGEPAGE` is what the setup puts down.

Ack, for other input.

--
Kiryl Shutsemau / Kirill A. Shutemov