mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
sunrpc: destroy rpc_inode_cachep after unregister_filesystem
Better to unregister the file system before destroying the kmem_cache cache of the inodes, so that the inodes are freed before we are trying to destroy it. Otherwise, kmem_cache yells that some objects are live. Signed-off-by: Dan Aloni <dan@kernelim.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
57f80c0eda
commit
4a400f0d08
1 changed files with 1 additions and 1 deletions
|
@ -1510,6 +1510,6 @@ int register_rpc_pipefs(void)
|
|||
void unregister_rpc_pipefs(void)
|
||||
{
|
||||
rpc_clients_notifier_unregister();
|
||||
kmem_cache_destroy(rpc_inode_cachep);
|
||||
unregister_filesystem(&rpc_pipe_fs_type);
|
||||
kmem_cache_destroy(rpc_inode_cachep);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue