Skip to content

Convert nfs_readpages() to nfs_readahead()

Dave Wysochanski linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesIn review
  2. v11 patch 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1NFS: Convert from readpages() to readahead()fs/nfs/file.c fs/nfs/read.c include/linux/nfs_fs.h +1 more+18 -112 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] Convert nfs_readpages() to nfs_readahead()

This patch converts nfs_readpages() to nfs_readahead(). It was applied as follows:
0. Start with trond's testing branch at
0abb8895b065 NFS: Fix an Oops in pnfs_mark_request_commit()
1. Apply David Howells v3 of "fscache: Replace and remove old I/O API" [1]
2. Apply my fscache patches v2 of "Various NFS fscache cleanups" [2]
3. Apply Chucks v3 of "NFS: Replace dprintk callsites in nfs_readpage(s)" plus one fixup (remove the "read_complete:" label in last hunk, which conflicts with #2) [3]
4. Apply this patch

So far the existing BakeAThon tests have gone well with no oops or any failure differences in xfstests (generic) between 5.15.0-rc4 and kernel with #2 and #3 above. I will continue testing now with all patches as described above (#1 - #5).

As far as I know this has been an outstanding item for the NFS client for a while and the fscache fallback IO API clears the way for this patch.

I also just posted a v2 of the nfs-utils patch to display a "VFS readahead" count rather than a readpages count [4].

[1] https://marc.info/?l=linux-nfs&m=163363955619832&w=2
[2] https://marc.info/?l=linux-nfs&m=163364580324243&w=2
[3] https://marc.info/?l=linux-nfs&m=163370503223875&w=2
[4] https://marc.info/?l=linux-nfs&m=163378240328297&w=2

Dave Wysochanski (1):
NFS: Convert from readpages() to readahead()

 fs/nfs/file.c              |  2 +-
 fs/nfs/read.c              | 18 +++++++++++++-----
 include/linux/nfs_fs.h     |  3 +--
 include/linux/nfs_iostat.h |  6 +++---
 4 files changed, 18 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.3.1