Skip to content

Commit 4a400f0

Browse files
da-xTrond Myklebust
authored andcommitted
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 57f80c0 commit 4a400f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/rpc_pipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,6 @@ int register_rpc_pipefs(void)
15101510
void unregister_rpc_pipefs(void)
15111511
{
15121512
rpc_clients_notifier_unregister();
1513-
kmem_cache_destroy(rpc_inode_cachep);
15141513
unregister_filesystem(&rpc_pipe_fs_type);
1514+
kmem_cache_destroy(rpc_inode_cachep);
15151515
}

0 commit comments

Comments
 (0)