]> git.karo-electronics.de Git - karo-tx-linux.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)
commit90c4e82999c517e0cd00d0782c68d186cb18b784
tree61e1984458df512d72c76721d9f4fe15821a6cea
parent432eb1a5fb380477ae759041bac2bb305977e436
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