From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Thu, 27 Jul 2023 09:22:54 -0400 Subject: [Cluster-devel] [PATCH dlm-next 04/13] fs: dlm: check on plock ops when exit dlm In-Reply-To: <20230727132303.3352514-1-aahringo@redhat.com> References: <20230727132303.3352514-1-aahringo@redhat.com> Message-ID: <20230727132303.3352514-4-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- fs/dlm/plock.c | 2 ++ 1 file changed, 2 insertions(+) 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)); } -- 2.31.1