[Devel] [PATCH 0/6] SUNPRC: cleanup PipeFS for network-namespace-aware users

2011-11-22 Thread Stanislav Kinsbursky
This patch-set was created in context of clone of git branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git. tag: v3.1 This is cleanup precursor patch set. It's required for easier further implementation of network-namespace-aware SUNRPC PipeFS pipes creators. Generally, this patch set spli

[Devel] [PATCH 3/6] SUNRPC: cleanup PipeFS redundant RPC inode usage

2011-11-22 Thread Stanislav Kinsbursky
This patch removes redundant RPC inode references from PipeFS. These places are actually where pipes operations are performed. Signed-off-by: Stanislav Kinsbursky --- net/sunrpc/rpc_pipe.c | 93 - 1 files changed, 46 insertions(+), 47 deletions(

[Devel] [PATCH 1/6] SUNRPC: replace inode lock with pipe lock for RPC PipeFS operations

2011-11-22 Thread Stanislav Kinsbursky
Currenly, inode i_lock is used to provide concurrent access to SUNPRC PipeFS pipes. It looks redundant, since now other use of inode is present in most of these places and thus can be easely replaced, which will allow to remove most of inode references from PipeFS code. This is a first step towards

[Devel] [PATCH 5/6] SUNRPC: cleanup GSS pipes usage

2011-11-22 Thread Stanislav Kinsbursky
Currently gss auth holds RPC inode pointer which is now redundant since it requires only pipes operations which takes private pipe data as an argument. Thus this code can be cleaned and all references to RPC inode can be replaced with privtae pipe data references. Signed-off-by: Stanislav Kinsburs

[Devel] [PATCH 4/6] SUNPRC: cleanup RPC PipeFS pipes upcall interface

2011-11-22 Thread Stanislav Kinsbursky
RPC pipe upcall doesn't requires only private pipe data. Thus RPC inode references in this code can be removed. Signed-off-by: Stanislav Kinsbursky --- fs/nfs/blocklayout/blocklayoutdev.c |2 +- fs/nfs/blocklayout/blocklayoutdm.c |2 +- fs/nfs/idmap.c |4 ++--

[Devel] [PATCH 2/6] SUNRPC: split SUNPRC PipeFS pipe data and inode creation

2011-11-22 Thread Stanislav Kinsbursky
Generally, pipe data is used only for pipes, and thus allocating space for it on every RPC inode allocation is redundant. This patch splits private SUNRPC PipeFS pipe data and inode, makes pipe data allocated only for pipe inodes. This patch is also is a next step towards to to removing PipeFS inod

[Devel] [PATCH 6/6] SUNRPC: split SUNPRC PipeFS dentry and private pipe data creation

2011-11-22 Thread Stanislav Kinsbursky
This patch is a final step towards to removing PipeFS inode references from kernel code other than PipeFS itself. It makes all kernel SUNRPC PipeFS users depends on pipe private data, which state depend on their specific operations, etc. This patch completes SUNRPC PipeFS preparations and allows to