Commit 67b5da9a authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland

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: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 541adb0d
...@@ -628,5 +628,7 @@ int dlm_plock_init(void) ...@@ -628,5 +628,7 @@ int dlm_plock_init(void)
void dlm_plock_exit(void) void dlm_plock_exit(void)
{ {
misc_deregister(&plock_dev_misc); misc_deregister(&plock_dev_misc);
WARN_ON(!list_empty(&send_list));
WARN_ON(!list_empty(&recv_list));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment