diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-10-27 23:45:18 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-08 21:59:41 +0300 |
commit | a4c0352bb1094cbe242f4458e267de845790737a (patch) | |
tree | d245450da6ff15bbc51e1a7073c17bc95be09744 /fs/dlm/lockspace.c | |
parent | d3e4dc5d68c8fef719291cc9f3dc907aac494c55 (diff) | |
download | linux-a4c0352bb1094cbe242f4458e267de845790737a.tar.xz |
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/lockspace.c')
-rw-r--r-- | fs/dlm/lockspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 9479c8110979..4965737705b7 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -567,7 +567,7 @@ static int new_lockspace(const char *name, const char *cluster, init_completion(&ls->ls_recovery_done); ls->ls_recovery_result = -1; - mutex_init(&ls->ls_cb_mutex); + spin_lock_init(&ls->ls_cb_lock); INIT_LIST_HEAD(&ls->ls_cb_delay); ls->ls_recoverd_task = NULL; |