Skip to content

Commit

Permalink
fs: dlm: check on plock ops when exit dlm
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Teigland <[email protected]>
  • Loading branch information
Alexander Aring authored and teigland committed Aug 10, 2023
1 parent 541adb0 commit 67b5da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/dlm/plock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit 67b5da9

Please sign in to comment.