summaryrefslogtreecommitdiff
path: root/fs/dlm/plock.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2023-08-01 21:09:41 +0300
committerDavid Teigland <teigland@redhat.com>2023-08-10 18:33:03 +0300
commit67b5da9a40fc984d25bda90a918e490e8c2555b7 (patch)
treea17ff8a2178182be0c04423a81586920965edbf2 /fs/dlm/plock.c
parent541adb0d4d10b4daf15f4b6b73c5d6b855d23eb5 (diff)
downloadlinux-67b5da9a40fc984d25bda90a918e490e8c2555b7.tar.xz
fs: dlm: check on plock ops when exit dlm
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>
Diffstat (limited to 'fs/dlm/plock.c')
-rw-r--r--fs/dlm/plock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/plock.c b/fs/dlm/plock.c
index 44b3aab5b709..5c2cc8d940ef 100644
--- a/fs/dlm/plock.c
+++ b/fs/dlm/plock.c
@@ -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));
}