[PATCH v7 0/6] nfsd/sunrpc: convert nfsstat server-side interfaces to use netlink

Jeff Layton posted 6 patches 1 week ago
Documentation/netlink/specs/nfsd.yaml | 111 ++++++++++++++
fs/lockd/svc4proc.c                   |   4 -
fs/lockd/svcproc.c                    |   7 -
fs/nfs/callback_xdr.c                 |   6 -
fs/nfsd/localio.c                     |   3 -
fs/nfsd/netlink.c                     |   5 +
fs/nfsd/netlink.h                     |   2 +
fs/nfsd/netns.h                       |  12 +-
fs/nfsd/nfs2acl.c                     |   3 -
fs/nfsd/nfs3acl.c                     |   3 -
fs/nfsd/nfs3proc.c                    |   3 -
fs/nfsd/nfs4callback.c                |  22 ++-
fs/nfsd/nfs4proc.c                    |   3 -
fs/nfsd/nfs4state.c                   |   2 -
fs/nfsd/nfsctl.c                      | 271 +++++++++++++++++++++++++++++++++-
fs/nfsd/nfsproc.c                     |   3 -
fs/nfsd/stats.c                       |   2 +-
fs/nfsd/stats.h                       |   5 +-
include/linux/sunrpc/stats.h          |   6 +
include/linux/sunrpc/svc.h            |   1 -
include/uapi/linux/nfsd_netlink.h     |  36 +++++
net/sunrpc/stats.c                    |   2 +-
net/sunrpc/svc.c                      |  63 +++++++-
23 files changed, 528 insertions(+), 47 deletions(-)
Re: [PATCH v7 0/6] nfsd/sunrpc: convert nfsstat server-side interfaces to use netlink
Posted by Chuck Lever 1 week ago
On Fri, 17 Jul 2026 07:08:52 -0400, Jeff Layton wrote:
> I last sent this series about a month ago, and dropped the ball on
> sending out a newer version afterward. This version fixes some minor
> issues that Chuck and Sashiko pointed out in review.
> 
> The nfsstat tool currently scrapes /proc/net/rpc/nfsd for server
> statistics. This procfs interface has several limitations: the
> counters are global (not network-namespace-aware), the format is
> fragile to parse, and it cannot be extended without breaking
> existing parsers.
> 
> [...]

Applied to nfsd-testing, thanks!

[1/6] sunrpc: add per-netns per-procedure call counts to svc_stat
      commit: 99d92415bd4a11218abe303fc9e6c12fef392d87
[2/6] sunrpc: use per-net counts in svc_seq_show()
      commit: 07d348fc22493ddf7f195903b929ddae1dd0f533
[3/6] nfsd: implement server-stats-get netlink handler
      commit: 58656de1ad40362db64f5ac6debd2646b956fe1a
[4/6] sunrpc: remove unused svc_version vs_count field
      commit: 09048531826cc3a5b0baca029ce3e3af432029aa
[5/6] nfsd: count NFSv4 callback operations per netns
      commit: 5ce4d8f4b06b8f987b1cc88f13e8c1a1cf29db37
[6/6] nfsd: export NFSv4 callback op stats via netlink
      commit: 134cf2c7e0bc44e69d52d955bac1c2348a86832f

--
Chuck Lever