Skip to content

Commit 67b5da9

Browse files
Alexander Aringteigland
authored andcommitted
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 <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent 541adb0 commit 67b5da9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/dlm/plock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,5 +628,7 @@ int dlm_plock_init(void)
628628
void dlm_plock_exit(void)
629629
{
630630
misc_deregister(&plock_dev_misc);
631+
WARN_ON(!list_empty(&send_list));
632+
WARN_ON(!list_empty(&recv_list));
631633
}
632634

0 commit comments

Comments
 (0)