fs: dlm: check on plock ops when exit dlm
authorAlexander Aring <aahringo@redhat.com>
Tue, 1 Aug 2023 18:09:41 +0000 (14:09 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 10 Aug 2023 15:33:03 +0000 (10:33 -0500)
To be sure we don't have any issues that there are leftover plock ops in
either send_list or recv_list we simple check if either one of the list
are empty when we exit the dlm subsystem.

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

index 44b3aab5b709bf8aeab680e07f50b9806c88b51b..5c2cc8d940efc9faa2abd4606e95490f0a31baa9 100644 (file)
@@ -628,5 +628,7 @@ int dlm_plock_init(void)
 void dlm_plock_exit(void)
 {
        misc_deregister(&plock_dev_misc);
+       WARN_ON(!list_empty(&send_list));
+       WARN_ON(!list_empty(&recv_list));
 }