Re: [PATCH v2 2/2] selftests/mm: add a test for UFFDIO_MOVE of a write-protected swap entry
From: Donggeun Yoo
Date: Sat Sep 26 2026 - 03:22:21 EST
On Fri, 25 Sep 2026 09:41:24 +0200, David Hildenbrand (Arm) wrote:
> Is this loop really required? I thought the page should just be unmapped from
> the page table. It might still be in the swapcache and under writeback, but
> that's irrelevant.
No, one call was enough in every run I did. v3 calls it once and skips if
the page isn't swapped out.
> Do we also want to check wrp? I'd assume it suffers from the same problem (did
> not check carefully though)
Yes, it does. v3 adds a move-swap-rwp case, which fails without patch 1
and passes with it.
Thanks,
Donggeun