Skip to content

NFS: Make NFS v4.0 KConfig-urable

Anna Schumaker linux-nfs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 1 replyIn review
  2. v114 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- KConfig-out NFS v4.0-only operations from nfs4xdr.c
- Fix a kernel test robot build warning

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14NFS: Move nfs40_call_sync_ops into nfs40proc.cfs/nfs/Makefile fs/nfs/nfs40.h fs/nfs/nfs40proc.c +2 more+40 -250 replies
2/14NFS: Split out the nfs40_reboot_recovery_ops into nfs40client.cfs/nfs/Makefile fs/nfs/internal.h fs/nfs/nfs40.h +6 more+216 -1940 replies
3/14NFS: Split out the nfs40_nograce_recovery_ops into nfs40proc.cfs/nfs/nfs40.h fs/nfs/nfs40proc.c fs/nfs/nfs4_fs.h +1 more+34 -290 replies
4/14NFS: Split out the nfs40_state_renewal_ops into nfs40proc.cfs/nfs/nfs40.h fs/nfs/nfs40proc.c fs/nfs/nfs4_fs.h +1 more+103 -1010 replies
5/14NFS: Split out the nfs40_mig_recovery_ops to nfs40proc.cfs/nfs/nfs40.h fs/nfs/nfs40proc.c fs/nfs/nfs4_fs.h +1 more+114 -1090 replies
6/14NFS: Move the NFS v4.0 minor version ops into nfs40proc.cfs/nfs/nfs40.h fs/nfs/nfs40proc.c fs/nfs/nfs4_fs.h +1 more+115 -1110 replies
7/14NFS: Make the various NFS v4.0 operations static againfs/nfs/nfs40.h fs/nfs/nfs40proc.c+5 -100 replies
8/14NFS: Move nfs40_shutdown_client into nfs40client.cfs/nfs/nfs40.h fs/nfs/nfs40client.c fs/nfs/nfs40proc.c +2 more+13 -90 replies
9/14NFS: Move nfs40_init_client into nfs40client.cfs/nfs/nfs40.h fs/nfs/nfs40client.c fs/nfs/nfs4_fs.h +1 more+28 -280 replies
10/14NFS: Move NFS v4.0 pathdown recovery into nfs40client.cfs/nfs/nfs40.h fs/nfs/nfs40client.c fs/nfs/nfs4state.c+25 -220 replies
11/14NFS: Pass a struct nfs_client to nfs4_init_sequence()fs/nfs/nfs40proc.c fs/nfs/nfs42proc.c fs/nfs/nfs4_fs.h +1 more+87 -690 replies
12/14NFS: Move sequence slot operations into minorversion operationsfs/nfs/nfs40proc.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c +1 more+70 -720 replies
13/14NFS: Add a way to disable NFS v4.0 via KConfigfs/nfs/Kconfig fs/nfs/Makefile fs/nfs/fs_context.c +5 more+50 -50 replies
14/14NFS: Merge CONFIG_NFS_V4_1 with CONFIG_NFS_V4fs/nfs/Kconfig fs/nfs/Makefile fs/nfs/callback.c +22 more+35 -3711 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/14] NFS: Make NFS v4.0 KConfig-urable

From: Anna Schumaker <[email protected]>

A desire to deprecate NFS v4.0 came up as a discussion topic during the October Bake-a-thon last year. This patchset takes the first step by moving NFS v4.0 only code into new files prefixed with "nfs40" and introducing a KConfig option to compile without NFS v4.0 support.

At the same time, I promote NFS v4.1 to be the default NFSv4 minorversion included in the kernel to prevent the situation where we have NFS v4 enabled without any minor versions.

Changes in v2:
- KConfig-out NFS v4.0-only operations from nfs4xdr.c
- Fix a kernel test robot build warning

Thoughts?
Anna

Anna Schumaker (14):
NFS: Move nfs40_call_sync_ops into nfs40proc.c
NFS: Split out the nfs40_reboot_recovery_ops into nfs40client.c
NFS: Split out the nfs40_nograce_recovery_ops into nfs40proc.c
NFS: Split out the nfs40_state_renewal_ops into nfs40proc.c
NFS: Split out the nfs40_mig_recovery_ops to nfs40proc.c
NFS: Move the NFS v4.0 minor version ops into nfs40proc.c
NFS: Make the various NFS v4.0 operations static again
NFS: Move nfs40_shutdown_client into nfs40client.c
NFS: Move nfs40_init_client into nfs40client.c
NFS: Move NFS v4.0 pathdown recovery into nfs40client.c
NFS: Pass a struct nfs_client to nfs4_init_sequence()
NFS: Move sequence slot operations into minorversion operations
NFS: Add a way to disable NFS v4.0 via KConfig
NFS: Merge CONFIG_NFS_V4_1 with CONFIG_NFS_V4

 fs/nfs/Kconfig            |  26 +-
 fs/nfs/Makefile           |   4 +-
 fs/nfs/callback.c         |  13 +-
 fs/nfs/callback.h         |   3 -
 fs/nfs/callback_proc.c    |   3 -
 fs/nfs/callback_xdr.c     |  21 --
 fs/nfs/client.c           |   8 +-
 fs/nfs/fs_context.c       |   3 +-
 fs/nfs/internal.h         |  15 +-
 fs/nfs/netns.h            |   4 +-
 fs/nfs/nfs40.h            |  19 ++
 fs/nfs/nfs40client.c      | 247 ++++++++++++++
 fs/nfs/nfs40proc.c        | 395 ++++++++++++++++++++++
 fs/nfs/nfs42proc.c        |  13 +-
 fs/nfs/nfs4_fs.h          |  83 ++---
 fs/nfs/nfs4client.c       | 193 +----------
 fs/nfs/nfs4proc.c         | 682 +++++++-------------------------------
 fs/nfs/nfs4session.c      |   4 -
 fs/nfs/nfs4session.h      |  23 --
 fs/nfs/nfs4state.c        |  91 +----
 fs/nfs/nfs4trace.c        |   2 -
 fs/nfs/nfs4trace.h        |  16 -
 fs/nfs/nfs4xdr.c          | 109 ++----
 fs/nfs/pnfs.h             |   6 +-
 fs/nfs/read.c             |   4 +-
 fs/nfs/super.c            |  16 +-
 fs/nfs/sysfs.c            |  10 +-
 fs/nfs/write.c            |   2 +-
 include/linux/nfs_fs_sb.h |   2 -
 include/linux/nfs_xdr.h   |   7 +-
 30 files changed, 902 insertions(+), 1122 deletions(-)
 create mode 100644 fs/nfs/nfs40.h
 create mode 100644 fs/nfs/nfs40client.c
 create mode 100644 fs/nfs/nfs40proc.c
Signature · 1 line
2.52.0