fs: dlm: unregister memory at the very last
authorAlexander Aring <aahringo@redhat.com>
Mon, 29 May 2023 21:44:32 +0000 (17:44 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 14 Jun 2023 15:17:33 +0000 (10:17 -0500)
The dlm modules midcomms, debugfs, lockspace, uses kmem caches. We
ensure that the kmem caches getting deallocated after those modules
exited.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/main.c

index 93755f83a30d19305e54e47ac3b0d6072433b6c3..6ca28299c9db182e5387b113e1be26b490508de3 100644 (file)
@@ -73,10 +73,10 @@ static void __exit exit_dlm(void)
        dlm_plock_exit();
        dlm_user_exit();
        dlm_config_exit();
-       dlm_memory_exit();
        dlm_lockspace_exit();
        dlm_midcomms_exit();
        dlm_unregister_debugfs();
+       dlm_memory_exit();
 }
 
 module_init(init_dlm);