Skip to content

NFSD: continuation of NFSD DIRECT

Mike Snitzer linux-nfs oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sunrpc: add an extra reserve page to svc_serv_maxpages()include/linux/sunrpc/svc.h+4 -11 reply
2/2NFSD: Implement NFSD_IO_DIRECT for NFS WRITEfs/nfsd/debugfs.c fs/nfsd/trace.h fs/nfsd/vfs.c+212 -54 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJeff Layton
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] NFSD: continuation of NFSD DIRECT

Hi Chuck,

These patches build ontop of your recent series, here:
https://lore.kernel.org/linux-nfs/[email protected]/

The first sunrpc patch is carry-over from earlier iterations of my NFSD DIRECT patchsets. I think it needed to be sure we have adequate pages to handle expanding misaligned READ to fit in max payload. But maybe not?

The 2nd "NFSD: Implement NFSD_IO_DIRECT for NFS WRITE" patch is a refactored version of my earlier NFS WRITE support. I tried to honor the types of changes I saw in your rewrite of the NFSD_IO_DIRECT NFS READ support. So I avoided needless maths and variables that were only for the benefit of excessive tracepoint complexity (which I also removed), while also establishing cleaner code that you can iterate on further if you think something else needed. LOC isn't much smaller but maybe you or others will see something that can be elided -- the good news is this NFSD DIRECT WRITE code stands on its own like the NFSD DIRECT READ does.

Not sure what NFSD DIRECT WRITE gray areas you think we need to work through further in NFSD (but I could imagine there being room for common Linux vfs code or other FS-specific code improvements to make buffered vs direct safer). I know others have repeated concern but in practice I haven't had any issues with this NFSD DIRECT WRITE suppoort. So I welcome further discussion on what else needed.

Thanks,
Mike

Mike Snitzer (2):
sunrpc: add an extra reserve page to svc_serv_maxpages()
NFSD: Implement NFSD_IO_DIRECT for NFS WRITE

 fs/nfsd/debugfs.c          |   1 +
 fs/nfsd/trace.h            |   1 +
 fs/nfsd/vfs.c              | 215 ++++++++++++++++++++++++++++++++++++-
 include/linux/sunrpc/svc.h |   5 +-
 4 files changed, 216 insertions(+), 6 deletions(-)
Signature · 1 line
2.44.0