diff options
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r-- | fs/nfsd/nfsctl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index bb4a11d58a5a..748eda93ce59 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "idmap.h" | 18 | #include "idmap.h" |
19 | #include "nfsd.h" | 19 | #include "nfsd.h" |
20 | #include "cache.h" | 20 | #include "cache.h" |
21 | #include "fault_inject.h" | ||
21 | 22 | ||
22 | /* | 23 | /* |
23 | * We have a single directory with several nodes in it. | 24 | * We have a single directory with several nodes in it. |
@@ -1128,9 +1129,13 @@ static int __init init_nfsd(void) | |||
1128 | int retval; | 1129 | int retval; |
1129 | printk(KERN_INFO "Installing knfsd (copyright (C) 1996 okir@monad.swb.de).\n"); | 1130 | printk(KERN_INFO "Installing knfsd (copyright (C) 1996 okir@monad.swb.de).\n"); |
1130 | 1131 | ||
1131 | retval = nfs4_state_init(); /* nfs4 locking state */ | 1132 | retval = nfsd4_init_slabs(); |
1132 | if (retval) | 1133 | if (retval) |
1133 | return retval; | 1134 | return retval; |
1135 | nfs4_state_init(); | ||
1136 | retval = nfsd_fault_inject_init(); /* nfsd fault injection controls */ | ||
1137 | if (retval) | ||
1138 | goto out_free_slabs; | ||
1134 | nfsd_stat_init(); /* Statistics */ | 1139 | nfsd_stat_init(); /* Statistics */ |
1135 | retval = nfsd_reply_cache_init(); | 1140 | retval = nfsd_reply_cache_init(); |
1136 | if (retval) | 1141 | if (retval) |
@@ -1161,6 +1166,8 @@ out_free_cache: | |||
1161 | nfsd_reply_cache_shutdown(); | 1166 | nfsd_reply_cache_shutdown(); |
1162 | out_free_stat: | 1167 | out_free_stat: |
1163 | nfsd_stat_shutdown(); | 1168 | nfsd_stat_shutdown(); |
1169 | nfsd_fault_inject_cleanup(); | ||
1170 | out_free_slabs: | ||
1164 | nfsd4_free_slabs(); | 1171 | nfsd4_free_slabs(); |
1165 | return retval; | 1172 | return retval; |
1166 | } | 1173 | } |
@@ -1175,6 +1182,7 @@ static void __exit exit_nfsd(void) | |||
1175 | nfsd_lockd_shutdown(); | 1182 | nfsd_lockd_shutdown(); |
1176 | nfsd_idmap_shutdown(); | 1183 | nfsd_idmap_shutdown(); |
1177 | nfsd4_free_slabs(); | 1184 | nfsd4_free_slabs(); |
1185 | nfsd_fault_inject_cleanup(); | ||
1178 | unregister_filesystem(&nfsd_fs_type); | 1186 | unregister_filesystem(&nfsd_fs_type); |
1179 | } | 1187 | } |
1180 | 1188 | ||