History

nfsd: export NFSv4 callback op stats via netlink

Add a proc4cb-ops nested attribute to the server-stats netlink dump, reusing the existing server-proc-entry (op/count) layout. The dump gains a callback section that emits one entry per callback opcode (OP_CB_GETATTR..OP_CB_OFFLOAD) from the per-netns callback counters, paged across messages like the other per-operation sections. This lets nfsstat report NFSv4 backchannel operation counts over netlink, including CB_GETATTR which corresponds to the procfs wdeleg_getattr line.

Jeff Layton committed 4 months ago

Commit 46db3c81 parent 1e5f6413 files · +34 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nfsd_netlink.h+1−0
@@ -254,6 +254,7 @@ enum { · 253 unmodified lines
254 NFSD_A_SERVER_STATS_PROC3_OPS,254 NFSD_A_SERVER_STATS_PROC3_OPS,
255 NFSD_A_SERVER_STATS_PROC4_OPS,255 NFSD_A_SERVER_STATS_PROC4_OPS,
256 NFSD_A_SERVER_STATS_PROC4OPS_OPS,256 NFSD_A_SERVER_STATS_PROC4OPS_OPS,
257 NFSD_A_SERVER_STATS_PROC4CB_OPS,
257 258
258 __NFSD_A_SERVER_STATS_MAX,259 __NFSD_A_SERVER_STATS_MAX,
259 NFSD_A_SERVER_STATS_MAX = (__NFSD_A_SERVER_STATS_MAX - 1)260 NFSD_A_SERVER_STATS_MAX = (__NFSD_A_SERVER_STATS_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t