projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca2a05a
)
knfsd: cleanup nfsd4 properly on module init failure
author
J. Bruce Fields
<bfields@citi.umich.edu>
Fri, 9 Nov 2007 17:31:55 +0000
(12:31 -0500)
committer
J. Bruce Fields
<bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:03 +0000
(16:42 -0500)
We forgot to shut down the nfs4 state and idmapping code in this case.
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfsctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfsctl.c
b/fs/nfsd/nfsctl.c
index 77dc9893b7bab462b65ebd751d9cc0c01273891f..d8d50a773a5bbb38cceca1bb9ee32f056ebf2bcb 100644
(file)
--- a/
fs/nfsd/nfsctl.c
+++ b/
fs/nfsd/nfsctl.c
@@
-695,12
+695,14
@@
static int __init init_nfsd(void)
}
retval = register_filesystem(&nfsd_fs_type);
if (retval) {
+ nfsd_idmap_shutdown();
nfsd_export_shutdown();
nfsd_cache_shutdown();
remove_proc_entry("fs/nfs/exports", NULL);
remove_proc_entry("fs/nfs", NULL);
nfsd_stat_shutdown();
nfsd_lockd_shutdown();
+ nfsd4_free_slabs();
}
return retval;
}