]> rtime.felk.cvut.cz Git - linux-imx.git/commit
SUNRPC: make SUNPRC clients list per network namespace context
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 12 Jan 2012 18:07:51 +0000 (22:07 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 31 Jan 2012 23:20:25 +0000 (18:20 -0500)
commit70abc49b4f4a4ef04a6bd9852edbd047b480bed7
tree7c9a266ff8838d7945106920a5f0251861a850a5
parentccdc28f81c91f7ef2dc6c28d27f50264b19e4dd5
SUNRPC: make SUNPRC clients list per network namespace context

This patch moves static SUNRPC clients list and it's lock to sunrpc_net
structure.
Currently this list is used only for debug purposes. But later it will be used
also for selecting clients by networks namespace on PipeFS mount/umount events.
Per-network namespace lists will make this faster and simplier.

Note: client list is taken from "init_net" network namespace context in
rpc_show_tasks(). This will be changed some day later with making SUNRPC
sysctl's per network namespace context.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/clnt.c
net/sunrpc/netns.h
net/sunrpc/sunrpc_syms.c
net/sunrpc/sysctl.c