diff mbox series

sunrpc: destroy rpc_inode_cachep after unregister_filesystem

Message ID 20200626072316.39504-1-dan@kernelim.com
State New
Headers show
Series sunrpc: destroy rpc_inode_cachep after unregister_filesystem | expand

Commit Message

Dan Aloni June 26, 2020, 7:23 a.m. UTC
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>
 net/sunrpc/rpc_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 39e14d5edaf1..111f0b2e174f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1509,6 +1509,6 @@  int register_rpc_pipefs(void)
 void unregister_rpc_pipefs(void)
-	kmem_cache_destroy(rpc_inode_cachep);
+	kmem_cache_destroy(rpc_inode_cachep);