diff options
Diffstat (limited to 'fs/nfsd/nfsctl.c')
| -rw-r--r-- | fs/nfsd/nfsctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 19ace74d35f6..aa47d75ddb26 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include "cache.h" | 21 | #include "cache.h" |
| 22 | #include "state.h" | 22 | #include "state.h" |
| 23 | #include "netns.h" | 23 | #include "netns.h" |
| 24 | #include "pnfs.h" | ||
| 24 | 25 | ||
| 25 | /* | 26 | /* |
| 26 | * We have a single directory with several nodes in it. | 27 | * We have a single directory with several nodes in it. |
| @@ -1258,9 +1259,12 @@ static int __init init_nfsd(void) | |||
| 1258 | retval = nfsd4_init_slabs(); | 1259 | retval = nfsd4_init_slabs(); |
| 1259 | if (retval) | 1260 | if (retval) |
| 1260 | goto out_unregister_pernet; | 1261 | goto out_unregister_pernet; |
| 1261 | retval = nfsd_fault_inject_init(); /* nfsd fault injection controls */ | 1262 | retval = nfsd4_init_pnfs(); |
| 1262 | if (retval) | 1263 | if (retval) |
| 1263 | goto out_free_slabs; | 1264 | goto out_free_slabs; |
| 1265 | retval = nfsd_fault_inject_init(); /* nfsd fault injection controls */ | ||
| 1266 | if (retval) | ||
| 1267 | goto out_exit_pnfs; | ||
| 1264 | nfsd_stat_init(); /* Statistics */ | 1268 | nfsd_stat_init(); /* Statistics */ |
| 1265 | retval = nfsd_reply_cache_init(); | 1269 | retval = nfsd_reply_cache_init(); |
| 1266 | if (retval) | 1270 | if (retval) |
| @@ -1282,6 +1286,8 @@ out_free_lockd: | |||
| 1282 | out_free_stat: | 1286 | out_free_stat: |
| 1283 | nfsd_stat_shutdown(); | 1287 | nfsd_stat_shutdown(); |
| 1284 | nfsd_fault_inject_cleanup(); | 1288 | nfsd_fault_inject_cleanup(); |
| 1289 | out_exit_pnfs: | ||
| 1290 | nfsd4_exit_pnfs(); | ||
| 1285 | out_free_slabs: | 1291 | out_free_slabs: |
| 1286 | nfsd4_free_slabs(); | 1292 | nfsd4_free_slabs(); |
| 1287 | out_unregister_pernet: | 1293 | out_unregister_pernet: |
| @@ -1299,6 +1305,7 @@ static void __exit exit_nfsd(void) | |||
| 1299 | nfsd_stat_shutdown(); | 1305 | nfsd_stat_shutdown(); |
| 1300 | nfsd_lockd_shutdown(); | 1306 | nfsd_lockd_shutdown(); |
| 1301 | nfsd4_free_slabs(); | 1307 | nfsd4_free_slabs(); |
| 1308 | nfsd4_exit_pnfs(); | ||
| 1302 | nfsd_fault_inject_cleanup(); | 1309 | nfsd_fault_inject_cleanup(); |
| 1303 | unregister_filesystem(&nfsd_fs_type); | 1310 | unregister_filesystem(&nfsd_fs_type); |
| 1304 | unregister_pernet_subsys(&nfsd_net_ops); | 1311 | unregister_pernet_subsys(&nfsd_net_ops); |
