diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 15:26:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 15:26:41 -0500 |
commit | 0b48d42235caf627121f440b57d376f48a9af8b6 (patch) | |
tree | 400967c5fcb1cd08bbc0e1739e229f9717590f19 /fs/nfsd/nfsctl.c | |
parent | 8e63dd6e1c589ba99a18df9cbaa41c3178607641 (diff) | |
parent | 7a6ef8c72314f254c107c6a9ed7cb201961ee05a (diff) |
Merge branch 'for-3.3' of git://linux-nfs.org/~bfields/linux
* 'for-3.3' of git://linux-nfs.org/~bfields/linux: (31 commits)
nfsd4: nfsd4_create_clid_dir return value is unused
NFSD: Change name of extended attribute containing junction
svcrpc: don't revert to SVC_POOL_DEFAULT on nfsd shutdown
svcrpc: fix double-free on shutdown of nfsd after changing pool mode
nfsd4: be forgiving in the absence of the recovery directory
nfsd4: fix spurious 4.1 post-reboot failures
NFSD: forget_delegations should use list_for_each_entry_safe
NFSD: Only reinitilize the recall_lru list under the recall lock
nfsd4: initialize special stateid's at compile time
NFSd: use network-namespace-aware cache registering routines
SUNRPC: create svc_xprt in proper network namespace
svcrpc: update outdated BKL comment
nfsd41: allow non-reclaim open-by-fh's in 4.1
svcrpc: avoid memory-corruption on pool shutdown
svcrpc: destroy server sockets all at once
svcrpc: make svc_delete_xprt static
nfsd: Fix oops when parsing a 0 length export
nfsd4: Use kmemdup rather than duplicating its implementation
nfsd4: add a separate (lockowner, inode) lookup
nfsd4: fix CONFIG_NFSD_FAULT_INJECTION compile error
...
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 | ||