Re: [PATCH v3 4/6] mm: internal: introduce FPB_LOCKLESS for folio_pte_batch_flags()
From: Rik van Riel
Date: Mon Nov 09 2026 - 23:51:47 EST
On Mon, 2026-11-09 at 12:32 +0000, Yeoreum Yun wrote:
> From: Yuan-Hao Hsu <aa9736195201@xxxxxxxxx>
>
> Add support for calling folio_pte_batch_flags() in GUP-fast context
> when we are
> not holding the PT lock. Instead of reading PTEs through ptep_get(),
> we have to
> use ptep_get_lockless().
>
> Specify the new behavior through a new flag FPB_LOCKLESS. We'll make
> use of this
> functionality for batching PTEs in gup_fast_pte_range() next.
>
> Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> Signed-off-by: Yuan-Hao Hsu <aa9736195201@xxxxxxxxx>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@xxxxxxx>
Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>
--
All Rights Reversed.