Skip to content

SUNRPC: make sysctl per network namespcase context

Stanislav Kinsbursky linux-nfs lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11SYSCTL: export root and set handling routinesinclude/linux/sysctl.h kernel/sysctl.c+12 -014 replies
2/11SUNRPC: use syctl path instead of dummy parent tableinclude/linux/sunrpc/debug.h net/sunrpc/sysctl.c net/sunrpc/xprtrdma/transport.c +1 more+20 -310 replies
3/11SUNRPC: sysctl root for debug table introducednet/sunrpc/sysctl.c+13 -30 replies
4/11SUNRPC: per-net sysctl's set introducedinclude/linux/sunrpc/debug.h net/sunrpc/netns.h net/sunrpc/sunrpc_syms.c +3 more+56 -90 replies
5/11SUNRPC: register debug sysctl table per network namespacenet/sunrpc/netns.h net/sunrpc/sunrpc_syms.c net/sunrpc/sysctl.c+14 -130 replies
6/11SUNRPC: register xs_tunables sysctl table per network namespaceinclude/linux/sunrpc/xprtsock.h net/sunrpc/netns.h net/sunrpc/sunrpc_syms.c +1 more+49 -140 replies
7/11SUNRPC: xs tunables per network namespace introducednet/sunrpc/netns.h net/sunrpc/xprtsock.c+44 -90 replies
8/11SUNRPC: use per-net xs tunables instead of static onesnet/sunrpc/xprtsock.c+26 -160 replies
9/11SUNRPC: remove xs_tcp_fin_timeout variablenet/sunrpc/xprtsock.c+2 -30 replies
10/11SUNRPC: allow debug flags modifications only from init_netnet/sunrpc/sysctl.c+2 -10 replies
11/11SUNRPC: sysctl table for rpc_debug introducedinclude/linux/sunrpc/sched.h net/sunrpc/netns.h net/sunrpc/sysctl.c+77 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] SUNRPC: make sysctl per network namespcase context

This patch set make SUNRPC sysctl created per network namspace context. It provides the following functionality:
1) Debug sysctl's ( {rpc,nfs,nlm,nfsd}_debug ) content is modifyable only from init_net network context.
2) Write to rpc_debug prints active RPC tasks in sysctl's creator networks context.
3) xs tunables are per-net now and modified through per-net sysctl's. IOW, sysctl creator context is used to get tunable during sysctl read/write access (not current tone).

The following series consists of:

---

Stanislav Kinsbursky (11):
SYSCTL: export root ans set handling routines
SUNRPC: use syctl path instead of dummy parent table
SUNRPC: sysctl root for debug table introduced
SUNRPC: per-net sysctl's set introduced
SUNRPC: register debug sysctl table per network namespace
SUNRPC: register xs_tunables sysctl table per network namespace
SUNRPC: xs tunables per network namespace introduced
SUNRPC: use per-net xs tunables instead of static ones
SUNRPC: remove xs_tcp_fin_timeout variable
SUNRPC: allow debug flags modifications only from init_net
SUNRPC: sysctl table for rpc_debug introduced

 include/linux/sunrpc/debug.h    |    9 ++
 include/linux/sunrpc/sched.h    |    1 
 include/linux/sunrpc/xprtsock.h |    3 +
 include/linux/sysctl.h          |    1 
 kernel/sysctl.c                 |   11 +++
 net/sunrpc/netns.h              |   12 +++
 net/sunrpc/sunrpc_syms.c        |   27 ++++++-
 net/sunrpc/sysctl.c             |  160 ++++++++++++++++++++++++++++++++-------
 net/sunrpc/xprtrdma/transport.c |   11 ---
 net/sunrpc/xprtsock.c           |  147 ++++++++++++++++++++++++------------
 10 files changed, 293 insertions(+), 89 deletions(-)