Re: [PATCH v3 4/6] mm: internal: introduce FPB_LOCKLESS for folio_pte_batch_flags()

From: David Hildenbrand (Arm)

Date: Tue Nov 10 2026 - 08:42:17 EST


On 11/9/26 13:32, 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: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David