diff options
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 0af37fc46818..3b62cf288031 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -1126,19 +1126,20 @@ rpc_fill_super(struct super_block *sb, void *data, int silent) | |||
1126 | return -ENOMEM; | 1126 | return -ENOMEM; |
1127 | dprintk("RPC: sending pipefs MOUNT notification for net %p%s\n", net, | 1127 | dprintk("RPC: sending pipefs MOUNT notification for net %p%s\n", net, |
1128 | NET_NAME(net)); | 1128 | NET_NAME(net)); |
1129 | sn->pipefs_sb = sb; | ||
1129 | err = blocking_notifier_call_chain(&rpc_pipefs_notifier_list, | 1130 | err = blocking_notifier_call_chain(&rpc_pipefs_notifier_list, |
1130 | RPC_PIPEFS_MOUNT, | 1131 | RPC_PIPEFS_MOUNT, |
1131 | sb); | 1132 | sb); |
1132 | if (err) | 1133 | if (err) |
1133 | goto err_depopulate; | 1134 | goto err_depopulate; |
1134 | sb->s_fs_info = get_net(net); | 1135 | sb->s_fs_info = get_net(net); |
1135 | sn->pipefs_sb = sb; | ||
1136 | return 0; | 1136 | return 0; |
1137 | 1137 | ||
1138 | err_depopulate: | 1138 | err_depopulate: |
1139 | blocking_notifier_call_chain(&rpc_pipefs_notifier_list, | 1139 | blocking_notifier_call_chain(&rpc_pipefs_notifier_list, |
1140 | RPC_PIPEFS_UMOUNT, | 1140 | RPC_PIPEFS_UMOUNT, |
1141 | sb); | 1141 | sb); |
1142 | sn->pipefs_sb = NULL; | ||
1142 | __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); | 1143 | __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); |
1143 | return err; | 1144 | return err; |
1144 | } | 1145 | } |