summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index ea52c71534b5..8a1758200b57 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -51,6 +51,7 @@
51#include "pnfs.h" 51#include "pnfs.h"
52#include "nfs.h" 52#include "nfs.h"
53#include "netns.h" 53#include "netns.h"
54#include "sysfs.h"
54 55
55#include "nfstrace.h" 56#include "nfstrace.h"
56 57
@@ -2167,12 +2168,8 @@ static int nfs_net_init(struct net *net)
2167 2168
2168static void nfs_net_exit(struct net *net) 2169static void nfs_net_exit(struct net *net)
2169{ 2170{
2170 struct nfs_net *nn = net_generic(net, nfs_net_id);
2171
2172 nfs_fs_proc_net_exit(net); 2171 nfs_fs_proc_net_exit(net);
2173 nfs_cleanup_cb_ident_idr(net); 2172 nfs_clients_exit(net);
2174 WARN_ON_ONCE(!list_empty(&nn->nfs_client_list));
2175 WARN_ON_ONCE(!list_empty(&nn->nfs_volume_list));
2176} 2173}
2177 2174
2178static struct pernet_operations nfs_net_ops = { 2175static struct pernet_operations nfs_net_ops = {
@@ -2189,6 +2186,10 @@ static int __init init_nfs_fs(void)
2189{ 2186{
2190 int err; 2187 int err;
2191 2188
2189 err = nfs_sysfs_init();
2190 if (err < 0)
2191 goto out10;
2192
2192 err = register_pernet_subsys(&nfs_net_ops); 2193 err = register_pernet_subsys(&nfs_net_ops);
2193 if (err < 0) 2194 if (err < 0)
2194 goto out9; 2195 goto out9;
@@ -2252,6 +2253,8 @@ out7:
2252out8: 2253out8:
2253 unregister_pernet_subsys(&nfs_net_ops); 2254 unregister_pernet_subsys(&nfs_net_ops);
2254out9: 2255out9:
2256 nfs_sysfs_exit();
2257out10:
2255 return err; 2258 return err;
2256} 2259}
2257 2260
@@ -2268,6 +2271,7 @@ static void __exit exit_nfs_fs(void)
2268 unregister_nfs_fs(); 2271 unregister_nfs_fs();
2269 nfs_fs_proc_exit(); 2272 nfs_fs_proc_exit();
2270 nfsiod_stop(); 2273 nfsiod_stop();
2274 nfs_sysfs_exit();
2271} 2275}
2272 2276
2273/* Not quite true; I just maintain it */ 2277/* Not quite true; I just maintain it */