linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/6] convert write_threads, write_version and write_ports to netlink commands
@ 2024-04-15 19:44 Lorenzo Bianconi
  2024-04-15 19:44 ` [PATCH v8 1/6] nfsd: move nfsd_mutex handling into nfsd_svc callers Lorenzo Bianconi
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Lorenzo Bianconi @ 2024-04-15 19:44 UTC (permalink / raw)
  To: linux-nfs; +Cc: lorenzo.bianconi, chuck.lever, neilb, netdev, kuba, jlayton

Introduce write_threads, write_version and write_ports netlink
commands similar to the ones available through the procfs.

Changes since v7:
- add gracetime and leasetime to threads-{set,get} command
- rely on nla_nest_start instead of nla_nest_start_noflag
Changes since v6:
- add the capability to pass sockaddr from userspace through listener-set
  command
- rebase on top of nfsd-next
Changes since v5:
- for write_ports and write_version commands, userspace is expected to provide
  a NFS listeners/supported versions list it want to enable (all the other
  ports/versions will be disabled).
- fix comments
- rebase on top of nfsd-next
Changes since v4:
- rebase on top of nfsd-next tree
Changes since v3:
- drop write_maxconn and write_maxblksize for the moment
- add write_version and write_ports commands
Changes since v2:
- use u32 to store nthreads in nfsd_nl_threads_set_doit
- rename server-attr in control-plane in nfsd.yaml specs
Changes since v1:
- remove write_v4_end_grace command
- add write_maxblksize and write_maxconn netlink commands

This patch can be tested with user-space tool reported below:
https://patchwork.kernel.org/project/linux-nfs/cover/20240412-nfsdctl-v1-0-efd6dcebcc04@kernel.org/

Jeff Layton (2):
  nfsd: move nfsd_mutex handling into nfsd_svc callers
  SUNRPC: add a new svc_find_listener helper

Lorenzo Bianconi (4):
  NFSD: convert write_threads to netlink command
  NFSD: add write_version to netlink command
  SUNRPC: introduce svc_xprt_create_from_sa utility routine
  NFSD: add listener-{set,get} netlink command

 Documentation/netlink/specs/nfsd.yaml | 104 ++++++
 fs/nfsd/netlink.c                     |  65 ++++
 fs/nfsd/netlink.h                     |  10 +
 fs/nfsd/netns.h                       |   1 +
 fs/nfsd/nfsctl.c                      | 476 ++++++++++++++++++++++++++
 fs/nfsd/nfssvc.c                      |   7 +-
 include/linux/sunrpc/svc_xprt.h       |   5 +
 include/uapi/linux/nfsd_netlink.h     |  46 +++
 net/sunrpc/svc_xprt.c                 | 167 +++++----
 9 files changed, 819 insertions(+), 62 deletions(-)

-- 
2.44.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2024-04-23 12:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 19:44 [PATCH v8 0/6] convert write_threads, write_version and write_ports to netlink commands Lorenzo Bianconi
2024-04-15 19:44 ` [PATCH v8 1/6] nfsd: move nfsd_mutex handling into nfsd_svc callers Lorenzo Bianconi
2024-04-15 19:44 ` [PATCH v8 2/6] NFSD: convert write_threads to netlink command Lorenzo Bianconi
2024-04-16 21:55   ` NeilBrown
2024-04-16 22:39     ` Jeff Layton
2024-04-17 13:04       ` Jeff Layton
2024-04-16 22:28   ` NeilBrown
2024-04-16 22:47     ` Jeff Layton
2024-04-15 19:44 ` [PATCH v8 3/6] NFSD: add write_version " Lorenzo Bianconi
2024-04-16  3:16   ` NeilBrown
2024-04-16 10:26     ` Jeff Layton
2024-04-16 21:48       ` NeilBrown
2024-04-16 22:33         ` Jeff Layton
2024-04-16 23:05           ` NeilBrown
2024-04-17  0:10             ` Jeff Layton
2024-04-17  0:43               ` NeilBrown
2024-04-17 11:25                 ` Jeff Layton
2024-04-22  3:36                   ` NeilBrown
2024-04-23 12:42                     ` Jeff Layton
2024-04-15 19:44 ` [PATCH v8 4/6] SUNRPC: introduce svc_xprt_create_from_sa utility routine Lorenzo Bianconi
2024-04-15 19:44 ` [PATCH v8 5/6] SUNRPC: add a new svc_find_listener helper Lorenzo Bianconi
2024-04-15 19:44 ` [PATCH v8 6/6] NFSD: add listener-{set,get} netlink command Lorenzo Bianconi
2024-04-16 19:05 ` [PATCH v8 0/6] convert write_threads, write_version and write_ports to netlink commands Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).