Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Aloni and committed by
Trond Myklebust
4a400f0d 57f80c0e

+1 -1
+1 -1
net/sunrpc/rpc_pipe.c
··· 1510 1510 void unregister_rpc_pipefs(void) 1511 1511 { 1512 1512 rpc_clients_notifier_unregister(); 1513 - kmem_cache_destroy(rpc_inode_cachep); 1514 1513 unregister_filesystem(&rpc_pipe_fs_type); 1514 + kmem_cache_destroy(rpc_inode_cachep); 1515 1515 }