fs: dlm: change ls_clear_proc_locks to spinlock
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Aug 2022 19:43:23 +0000 (15:43 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Aug 2022 19:54:02 +0000 (14:54 -0500)
commit296d9d1e9890830bd149105cf0193c2cf7d5bc86
tree979e5f5a81bfe23976b571f9d9dee30d08074f64
parente152c38dc0e8f1f7f8aceccbcfb5b019ca3a4352
fs: dlm: change ls_clear_proc_locks to spinlock

This patch changes the ls_clear_proc_locks to a spinlock because there
is no need to handle it as a mutex as there is no sleepable context when
ls_clear_proc_locks is held. This allows us to call those functionality
in non-sleepable contexts.

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