All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Coddington <bcodding@redhat.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 0/9 RFC v2] NFS sysfs scaffolding
Date: Fri, 21 Apr 2023 13:08:03 -0400	[thread overview]
Message-ID: <cover.1682096307.git.bcodding@redhat.com> (raw)

Here's another round of sysfs entries for each nfs_server, this time with a
single use-case: a "shutdown" toggle that causes the basic rpc_clnt(s) to
immediately fail tasks with -EIO.  It works well for the non pNFS cases to
allow an unmount of a filesystem when the NFS server has gone away.

I'm posting to gain potential NACKing, or to be redirected, or to serve as
fodder for discussion at LSF.

I'm thinking I'd like to toggle v4.2 things like READ_PLUS in here next, or
other module-level options that maybe would be useful per-mount.

Benjamin Coddington (9):
  NFS: rename nfs_client_kset to nfs_kset
  NFS: rename nfs_client_kobj to nfs_net_kobj
  NFS: add superblock sysfs entries
  NFS: Add sysfs links to sunrpc clients for nfs_clients
  NFS: add a sysfs link to the lockd rpc_client
  NFS: add a sysfs link to the acl rpc_client
  NFS: add sysfs shutdown knob
  NFS: Cleanup unused rpc_clnt variable
  NFSv4: Clean up some shutdown loops

 fs/lockd/clntlock.c         |   6 ++
 fs/nfs/client.c             |  21 +++++
 fs/nfs/nfs3client.c         |   4 +
 fs/nfs/nfs4client.c         |   2 +
 fs/nfs/nfs4proc.c           |   2 +-
 fs/nfs/nfs4state.c          |   5 +-
 fs/nfs/super.c              |   6 +-
 fs/nfs/sysfs.c              | 148 +++++++++++++++++++++++++++++++++---
 fs/nfs/sysfs.h              |   9 ++-
 include/linux/lockd/bind.h  |   2 +
 include/linux/nfs_fs_sb.h   |   3 +
 include/linux/sunrpc/clnt.h |  11 ++-
 net/sunrpc/clnt.c           |   5 ++
 net/sunrpc/sysfs.h          |   7 --
 14 files changed, 204 insertions(+), 27 deletions(-)

-- 
2.39.2


             reply	other threads:[~2023-04-21 17:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 17:08 Benjamin Coddington [this message]
2023-04-21 17:08 ` [PATCH 1/9] NFS: rename nfs_client_kset to nfs_kset Benjamin Coddington
2023-04-21 17:08 ` [PATCH 2/9] NFS: rename nfs_client_kobj to nfs_net_kobj Benjamin Coddington
2023-04-21 17:08 ` [PATCH 3/9] NFS: add superblock sysfs entries Benjamin Coddington
2023-04-21 17:08 ` [PATCH 4/9] NFS: Add sysfs links to sunrpc clients for nfs_clients Benjamin Coddington
2023-04-21 17:08 ` [PATCH 5/9] NFS: add a sysfs link to the lockd rpc_client Benjamin Coddington
2023-04-21 17:08 ` [PATCH 6/9] NFS: add a sysfs link to the acl rpc_client Benjamin Coddington
2023-04-21 17:08 ` [PATCH 7/9] NFS: add sysfs shutdown knob Benjamin Coddington
2023-04-21 17:08 ` [PATCH 8/9] NFS: Cleanup unused rpc_clnt variable Benjamin Coddington
2023-04-21 17:08 ` [PATCH 9/9] NFSv4: Clean up some shutdown loops Benjamin Coddington
2023-04-21 17:16 ` [PATCH 0/9 RFC v2] NFS sysfs scaffolding Benjamin Coddington
2023-04-21 17:37 ` Anna Schumaker
2023-04-21 17:46   ` Benjamin Coddington

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=cover.1682096307.git.bcodding@redhat.com \
    --to=bcodding@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.