diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2011-12-26 12:39:30 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 23:20:24 (GMT) |
commit | 90c4e82999c517e0cd00d0782c68d186cb18b784 (patch) | |
tree | 61e1984458df512d72c76721d9f4fe15821a6cea /net/sunrpc/netns.h | |
parent | 432eb1a5fb380477ae759041bac2bb305977e436 (diff) | |
download | linux-90c4e82999c517e0cd00d0782c68d186cb18b784.tar.xz |
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>
Diffstat (limited to 'net/sunrpc/netns.h')
-rw-r--r-- | net/sunrpc/netns.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/netns.h b/net/sunrpc/netns.h index d013bf2..b384252 100644 --- a/net/sunrpc/netns.h +++ b/net/sunrpc/netns.h @@ -9,6 +9,8 @@ struct cache_detail; struct sunrpc_net { struct proc_dir_entry *proc_net_rpc; struct cache_detail *ip_map_cache; + + struct super_block *pipefs_sb; }; extern int sunrpc_net_id; |