Re: [RFC PATCH v2 5/9] mm, pgtable: Add a refcount to PTE table

From: Chih-En Lin
Date: Tue Sep 27 2022 - 15:07:27 EST


On Tue, Sep 27, 2022 at 05:59:16PM +0000, Nadav Amit wrote:
> Is there some assumption that pmd_get_pte() would not be called between the
> page_ref_add_unless() and cow_pte_fallback()?
>
> Hard to know without comments or context.

Yes.
It is one of the corner case that I need to handle it.

Thanks,
Chih-En Lin