Re: [PATCH v2 6/7] nfs: Optimize direct I/O to use folios for requests

From: Pranjal Shrivastava

Date: Wed Jul 08 2026 - 07:47:41 EST


On Wed, Jul 08, 2026 at 12:48:56AM -0700, Christoph Hellwig wrote:
> On Tue, Jul 07, 2026 at 12:08:27PM +0000, Pranjal Shrivastava wrote:
> > Ack. I see! Thanks!
> >
> > Regarding the page_folio impasse, how do you suggest we proceed? Should
> > I expose and use get_contig_folio_len() from bvec? Or should I move the
> > NFS helper into the iov_iter lib? (or both).
>
> Sounds like the best way forward for now.

Ack. I'll reuse get_contig_folio len and move the nfs extractor to
iov_iter for v3.

>
> > Also, do you suggest sending the Folio move as a standalone patch if it
> > is blocking the rest of the series or do we prefer keeping these in a
> > single series?
>
> Sorry if I'm thick, but I'm not sure what "folio" move means. In doubt
> if you think you can get a series merged quicker without a later part
> I'd split it.

Apologies for being unclear. I meant I could post a standalone series
that moves NFS Direct I/O to folio, i.e. break out Patches 6 & 7 to
another series, if that makes sense?

Thanks,
Praan