Re: [RFC v1] io_uring/rsrc: add fast path huge page handling in buffer registration

From: Christoph Hellwig

Date: Wed Jun 10 2026 - 02:17:23 EST


On Tue, Jun 09, 2026 at 08:36:43PM +0200, David Hildenbrand (Arm) wrote:
> I really don't like arbitrary GUP users to starting to special case hugetlb
> folios, and making assumptions of how other pages they pinned look like (IOW,
> how the page table mappings actually looked like).

Me neither, but the current interfaces are kind forcing them :P

>
> Ideally, we'd have a pin_user_pages_fast() variant that would give you a list of
> folio ranges instead of individual pages.

Yes. iov_iter_extract_bvecs and thus the block direct I/O fast path
would instantly benefit from that.