Commit b0ad94f0 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] kNFSd: Unregister export caches in proper order

As the expkey cache references entries in export cache,
it should be flushed first.
Also, the auth_unix caches should go last.
parent 37201e61
...@@ -1120,10 +1120,12 @@ nfsd_export_shutdown(void) ...@@ -1120,10 +1120,12 @@ nfsd_export_shutdown(void)
exp_writelock(); exp_writelock();
exp_unexport_all(NULL); exp_unexport_all(NULL);
svcauth_unix_purge();
cache_unregister(&svc_export_cache); if (cache_unregister(&svc_expkey_cache))
cache_unregister(&svc_expkey_cache); printk(KERN_ERR "nfsd: failed to unregister expkey cache\n");
if (cache_unregister(&svc_export_cache))
printk(KERN_ERR "nfsd: failed to unregister export cache\n");
svcauth_unix_purge();
exp_writeunlock(); exp_writeunlock();
dprintk("nfsd: export shutdown complete.\n"); dprintk("nfsd: export shutdown complete.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment