Re: [PATCH] mm/memory: avoid unnecessary #PF on mTHP allocation race
From: David Hildenbrand (Arm)
Date: Tue May 12 2026 - 06:36:42 EST
On 5/12/26 11:50, Wandun Chen wrote:
> When an mTHP folio is allocated in do_anonymous_page() and the target
> pte range is not fully empty, current code would release the folio
> and return.
>
> This results an illusion that a page fault has already been processed
> even if the fact is vmf->address itself is still pte_none(). Another
> page fault will be triggered again.
Yes. Why is that a problem?
--
Cheers,
David