]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: put pipefs superblock link on network namespace
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Mon, 26 Dec 2011 12:39:30 +0000 (15:39 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 31 Jan 2012 23:20:24 +0000 (18:20 -0500)
commit3346421ac4a2f2b738361f8ac6dc32eabc5258c4
tree61e1984458df512d72c76721d9f4fe15821a6cea
parent05a24cc51f1f779494dcd3b7a8a15eaf905a80e9
SUNRPC: put pipefs superblock link on network namespace

We have modules (like, pNFS blocklayout module) which creates pipes on
rpc_pipefs. Thus we need per-net operations for them. To make it possible we
require appropriate super block. So we have to put sb link on network namespace
context. Note, that it's not strongly required to create pipes in per-net
operations. IOW, if pipefs wasn't mounted yet, that no sb link reference will
present on network namespace and in this case we need just need to pass through
pipe creation. Pipe dentry will be created during pipefs mount notification.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/netns.h
net/sunrpc/rpc_pipe.c