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