Re: [PATCH] mm/pagewalk: fix race between concurrent split and refault
From: David Hildenbrand (Arm)
Date: Wed Mar 18 2026 - 03:42:32 EST
>> +
>> pmd = pmd_offset(pud, addr);
>> do {
>> again:
>> @@ -218,12 +231,13 @@ static int walk_pud_range(p4d_t *p4d, unsigned
>> long addr, unsigned long end,
>> else if (pud_leaf(*pud) || !pud_present(*pud))
>> continue; /* Nothing to do. */
>
> Why not check pudval directly here? Like the following:
>
As the patch description states: "This mirrors the
retry logic in walk_pmd_range()."
--
Cheers,
David