dlm: drop mutex use in waiters recovery
authorAlexander Aring <aahringo@redhat.com>
Tue, 2 Apr 2024 19:18:03 +0000 (15:18 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 9 Apr 2024 16:44:49 +0000 (11:44 -0500)
commit6b52ea7916036cb01e7e37153f5e0ad342add765
treea4e7dd195ec25c2873a97fdfd7703cb1bd768304
parent3ae67760567438ff857e79bd799154b1f7da3b2a
dlm: drop mutex use in waiters recovery

The waiters_mutex no longer needs to be used in the waiters recovery
functions dlm_recover_waiters_pre() and dlm_recover_waiters_pre().
During recovery, ordinary locking operations are paused, and the
recovery thread is the only context accessing the waiters list,
so the lock is not needed.

Access to the waiters list from debugfs functions is avoided by
taking the top level recovery lock in the debugfs dump function.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/debug_fs.c
fs/dlm/lock.c
fs/dlm/lock.h