Linux NFS development
 help / color / mirror / Atom feed
From: Anna Schumaker <anna@kernel.org>
To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com
Cc: anna@kernel.org
Subject: [PATCH v2 00/14] NFS: Make NFS v4.0 KConfig-urable
Date: Mon, 26 Jan 2026 15:39:24 -0500	[thread overview]
Message-ID: <20260126203938.450304-1-anna@kernel.org> (raw)

From: Anna Schumaker <anna.schumaker@oracle.com>

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

-- 
2.52.0


             reply	other threads:[~2026-01-26 20:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-26 20:39 Anna Schumaker [this message]
2026-01-26 20:39 ` [PATCH v2 01/14] NFS: Move nfs40_call_sync_ops into nfs40proc.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 02/14] NFS: Split out the nfs40_reboot_recovery_ops into nfs40client.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 03/14] NFS: Split out the nfs40_nograce_recovery_ops into nfs40proc.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 04/14] NFS: Split out the nfs40_state_renewal_ops " Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 05/14] NFS: Split out the nfs40_mig_recovery_ops to nfs40proc.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 06/14] NFS: Move the NFS v4.0 minor version ops into nfs40proc.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 07/14] NFS: Make the various NFS v4.0 operations static again Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 08/14] NFS: Move nfs40_shutdown_client into nfs40client.c Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 09/14] NFS: Move nfs40_init_client " Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 10/14] NFS: Move NFS v4.0 pathdown recovery " Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 11/14] NFS: Pass a struct nfs_client to nfs4_init_sequence() Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 12/14] NFS: Move sequence slot operations into minorversion operations Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 13/14] NFS: Add a way to disable NFS v4.0 via KConfig Anna Schumaker
2026-01-26 20:39 ` [PATCH v2 14/14] NFS: Merge CONFIG_NFS_V4_1 with CONFIG_NFS_V4 Anna Schumaker
2026-02-13  8:58   ` Re; " Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260126203938.450304-1-anna@kernel.org \
    --to=anna@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox