Re: [RFC PATCH] mm: hold PTL from the first PTE while reclaiming a large folio

Huang, Ying
2024-03-05T07:52:31Z

David Hildenbrand <david@redhat.com> writes:
>
> As we are seeing more such problems with lockless PT walks, maybe we
> really want some other special value (nonswap entry?) to indicate that
> a PTE this is currently ondergoing protection changes. So we'd avoid
> the pte_none() temporarily, if possible.

This sounds like a good idea. This can solve other issue caused by
temporarily pte_none() issue too, like the following,

https://lore.kernel.org/linux-mm/20240229060907.836589-1-zhangpeng362@huawei.com/

--
Best Regards,
Huang, Ying