aboutsummaryrefslogtreecommitdiff
path: root/fs/dlm/dlm_internal.h
diff options
context:
space:
mode:
authorGravatar Alexander Aring <aahringo@redhat.com> 2022-08-15 15:43:23 -0400
committerGravatar David Teigland <teigland@redhat.com> 2022-08-23 14:54:02 -0500
commit296d9d1e9890830bd149105cf0193c2cf7d5bc86 (patch)
tree979e5f5a81bfe23976b571f9d9dee30d08074f64 /fs/dlm/dlm_internal.h
parentfs: dlm: remove dlm_del_ast prototype (diff)
downloadlinux-296d9d1e9890830bd149105cf0193c2cf7d5bc86.tar.gz
linux-296d9d1e9890830bd149105cf0193c2cf7d5bc86.tar.bz2
linux-296d9d1e9890830bd149105cf0193c2cf7d5bc86.zip
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>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r--fs/dlm/dlm_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h
index 8aca8085d24e..e34c3d2639a5 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -661,7 +661,7 @@ struct dlm_ls {
spinlock_t ls_recover_idr_lock;
wait_queue_head_t ls_wait_general;
wait_queue_head_t ls_recover_lock_wait;
- struct mutex ls_clear_proc_locks;
+ spinlock_t ls_clear_proc_locks;
struct list_head ls_root_list; /* root resources */
struct rw_semaphore ls_root_sem; /* protect root_list */