diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-10-27 16:45:18 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-08 12:59:41 -0600 |
commit | a4c0352bb1094cbe242f4458e267de845790737a (patch) | |
tree | d245450da6ff15bbc51e1a7073c17bc95be09744 /fs/dlm/dlm_internal.h | |
parent | d3e4dc5d68c8fef719291cc9f3dc907aac494c55 (diff) | |
download | lwn-a4c0352bb1094cbe242f4458e267de845790737a.tar.gz lwn-a4c0352bb1094cbe242f4458e267de845790737a.zip |
fs: dlm: convert ls_cb_mutex mutex to spinlock
This patch converts the ls_cb_mutex mutex to a spinlock, there is no
sleepable context when this lock is held.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index 94fadb619ba0..fc4be8c35703 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -631,7 +631,7 @@ struct dlm_ls { /* recovery related */ - struct mutex ls_cb_mutex; + spinlock_t ls_cb_lock; struct list_head ls_cb_delay; /* save for queue_work later */ struct timer_list ls_timer; struct task_struct *ls_recoverd_task; |