[Devel] [PATCH] SUNRPC: make SUNPRC clients list per network namespace context

2011-12-14 Thread Stanislav Kinsbursky
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 sim

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

2011-12-14 Thread Stanislav Kinsbursky
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 contex

[Devel] [PATCH 01/11] SYSCTL: export root and set handling routines

2011-12-14 Thread Stanislav Kinsbursky
These routines are required for making SUNRPC sysctl's per network namespace context. Signed-off-by: Stanislav Kinsbursky --- include/linux/sysctl.h |1 + kernel/sysctl.c| 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/linux/sysctl.h b/incl

[Devel] [PATCH 11/11] SUNRPC: sysctl table for rpc_debug introduced

2011-12-14 Thread Stanislav Kinsbursky
This patch provides showing of pending RPC tasks for right namespace in case of write oparation to "rpc_debug" sysctl. Signed-off-by: Stanislav Kinsbursky --- include/linux/sunrpc/sched.h |1 net/sunrpc/netns.h |1 net/sunrpc/sysctl.c | 87

[Devel] [PATCH 03/11] SUNRPC: sysctl root for debug table introduced

2011-12-14 Thread Stanislav Kinsbursky
Sysctl root is required for handliong sysctl dentries per network namespace context. IOW, it's "lookup" method will be used to find per-net sysctl's set in further patches. Also this patch modifies sysctl registering helpers to make them use new sysctl root. Signed-off-by: Stanislav Kinsbursky -

[Devel] [PATCH 02/11] SUNRPC: use syctl path instead of dummy parent table

2011-12-14 Thread Stanislav Kinsbursky
This is a cleanup patch. Parent sunrpc table is redundant. Syctl path can be used instead. Signed-off-by: Stanislav Kinsbursky --- include/linux/sunrpc/debug.h|4 net/sunrpc/sysctl.c | 25 ++--- net/sunrpc/xprtrdma/transport.c | 11 +-- n

[Devel] [PATCH 06/11] SUNRPC: register xs_tunables sysctl table per network namespace

2011-12-14 Thread Stanislav Kinsbursky
This patch introduces per-net sysctl header for xs_tunables table and moves xs_tunables table registration to per-net opreations. Signed-off-by: Stanislav Kinsbursky --- include/linux/sunrpc/xprtsock.h |3 ++ net/sunrpc/netns.h |1 + net/sunrpc/sunrpc_syms.c|7 +

[Devel] [PATCH 09/11] SUNRPC: remove xs_tcp_fin_timeout variable

2011-12-14 Thread Stanislav Kinsbursky
This is a cleanup patch. Static xs_tcp_fin_timeout is not needed anymore. Signed-off-by: Stanislav Kinsbursky --- net/sunrpc/xprtsock.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 49219d2..610a74a 100644 --- a/

[Devel] [PATCH 04/11] SUNRPC: per-net sysctl's set introduced

2011-12-14 Thread Stanislav Kinsbursky
This patch introduces per-net sysctl set and it's initialization routines. Also it modifies sysctl's registering helpers to make them use these sets. Signed-off-by: Stanislav Kinsbursky --- include/linux/sunrpc/debug.h|7 ++- net/sunrpc/netns.h |3 +++ net/sunrpc/su

[Devel] [PATCH 08/11] SUNRPC: use per-net xs tunables instead of static ones

2011-12-14 Thread Stanislav Kinsbursky
This patch replaces references to static tunables with per-net ones. Signed-off-by: Stanislav Kinsbursky --- net/sunrpc/xprtsock.c | 42 ++ 1 files changed, 26 insertions(+), 16 deletions(-) diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c in

[Devel] [PATCH 07/11] SUNRPC: xs tunables per network namespace introduced

2011-12-14 Thread Stanislav Kinsbursky
This patch introduces independent sets of xs tunables for every network namespace context. Their value is accessible via per-net sysctls. Static tunables left as a storage for module params and now used for initialization of new network namespace tunables set. Signed-off-by: Stanislav Kinsbursky

[Devel] [PATCH 10/11] SUNRPC: allow debug flags modifications only from init_net

2011-12-14 Thread Stanislav Kinsbursky
Debug flags are global (i.e. fo all namespaces). So probably, it is better to restrict write access and allow it only to processes with "init_net" network namespace. Signed-off-by: Stanislav Kinsbursky --- net/sunrpc/sysctl.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --

[Devel] [PATCH 05/11] SUNRPC: register debug sysctl table per network namespace

2011-12-14 Thread Stanislav Kinsbursky
This patch introduces per-net sysctl header for debug table and moves debug table registration to per-net opreations. Also, this patch moves SUNRPC sysctl root registration prior to per-net operations, since now they depends on it. Signed-off-by: Stanislav Kinsbursky --- net/sunrpc/netns.h

[Devel] Re: [PATCH 2/3] make clone_children a flag

2011-12-14 Thread Tejun Heo
Hello, On Wed, Dec 14, 2011 at 11:09:14AM +0400, Glauber Costa wrote: > That's indeed confusing, and it comes from the fact that we always > inherit clone_children from the parent - which is sane, IMHO. So > this flag only has any value in establishing the initial behaviour > of the top root cgrou

[Devel] Re: [PATCH v9 0/9] Request for inclusion: per-cgroup tcp memory pressure controls

2011-12-14 Thread KAMEZAWA Hiroyuki
On Mon, 12 Dec 2011 11:47:00 +0400 Glauber Costa wrote: > Hi, > > This series fixes all the few comments raised in the last round, > and seem to have acquired consensus from the memcg side. > > Dave, do you think it is acceptable now from the networking PoV? > In case positive, would you prefer

[Devel] Re: [PATCH v9 0/9] Request for inclusion: per-cgroup tcp memory pressure controls

2011-12-14 Thread David Miller
From: KAMEZAWA Hiroyuki Date: Thu, 15 Dec 2011 14:40:19 +0900 > I met this bug at _1st_ run. Please enable _all_ debug options!. Plus the CONFIG_NET=n and other build failures. This patch series was seriously rushed, and very poorly handled. Yet I kept getting so much pressure to review, comme

[Devel] Re: [PATCH v9 0/9] Request for inclusion: per-cgroup tcp memory pressure controls

2011-12-14 Thread Glauber Costa
On 12/15/2011 09:48 AM, David Miller wrote: From: KAMEZAWA Hiroyuki Date: Thu, 15 Dec 2011 14:40:19 +0900 I met this bug at _1st_ run. Please enable _all_ debug options!. Plus the CONFIG_NET=n and other build failures. This patch series was seriously rushed, and very poorly handled. Yet I k

[Devel] Re: [PATCH 2/3] make clone_children a flag

2011-12-14 Thread Glauber Costa
On 12/14/2011 10:18 PM, Tejun Heo wrote: Hello, On Wed, Dec 14, 2011 at 11:09:14AM +0400, Glauber Costa wrote: That's indeed confusing, and it comes from the fact that we always inherit clone_children from the parent - which is sane, IMHO. So this flag only has any value in establishing the ini