Commit 4a400f0d authored by Dan Aloni's avatar Dan Aloni Committed by Trond Myklebust
Browse files

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: default avatarDan Aloni <dan@kernelim.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 57f80c0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1510,6 +1510,6 @@ err_notifier:
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);
}