sunrpc: destroy rpc_inode_cachep after unregister_filesystem
authorDan Aloni <dan@kernelim.com>
Fri, 26 Jun 2020 07:23:16 +0000 (10:23 +0300)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 17 Jul 2020 17:12:44 +0000 (13:12 -0400)
commit4a400f0d08308e3e446a07d3f4590f243e44b7db
tree4d84cef5d8976094e8ee036c112a82ee4f9383e0
parent57f80c0eda4d153cd4329228518db75523d0f06c
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>
net/sunrpc/rpc_pipe.c