Re: [PATCH] mm/madvise: keep the hardware dirty bit in MADV_COLD's THP path
From: Lorenzo Stoakes (ARM)
Date: Mon Oct 12 2026 - 11:47:11 EST
+cc Pedro
On Mon, Oct 12, 2026 at 11:17:57AM -0400, Zi Yan wrote:
> On 12 Oct 2026, at 6:38, Lorenzo Stoakes (ARM) wrote:
> > [0]: https://lore.kernel.org/linux-mm/20261009-lazyfree-stable-fix-v1-1-70997958ef8d@xxxxxxxxxx
>
> No. Without lazyfree PMD level THP discard, the affect PMD will be split
> into PTEs without dirty bit and the dirty folio is still discarded.
OK thanks for clarifying!
>
> We will need Samarth’s fix for backport, then we can think carefully
> about David’s per-arch solution for mainline.
It's AI slop, and we don't accept that in mm (also -cc slopper).
Somebody from the core team will take of this fix separately.
Pedro - you mentioned you were interested in this, will you send a patch?
--
Cheers, Lorenzo