Re: [PATCH v3 13/13] mm/huge_memory: add and use has_deposited_pgtable()
From: Lorenzo Stoakes (Oracle)
Date: Mon Mar 23 2026 - 08:25:13 EST
On Mon, Mar 23, 2026 at 11:45:23AM +0000, Lorenzo Stoakes (Oracle) wrote:
> Hi Andrew,
>
> Could you apply the below fix-patch to resolve an issue with us performing
> folio_put() on a folio before checking it again to see if a table was
> deposited, as per Sashiko.
>
> This patch resolves the issue by storing whether or not this is the case in
> a has_deposit local variable (as used previously) before invoking
> zap_huge_pmd_folio(), then using this boolean to determine whether or not
> to zap any deposited table.
Oops this is wrong...!
Please apply the below instead :)
Thanks, Lorenzo
----8<----