diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-10-27 23:45:19 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-08 21:59:41 +0300 |
commit | 92e95733307e7b6dd352c12fa174089ed51e7208 (patch) | |
tree | be0513dd02a0ea114adec2095304485c27f2bc20 /fs/dlm/dlm_internal.h | |
parent | a4c0352bb1094cbe242f4458e267de845790737a (diff) | |
download | linux-92e95733307e7b6dd352c12fa174089ed51e7208.tar.xz |
fs: dlm: use spin lock instead of mutex
There is no need to use a mutex in those hot path sections. We change it
to spin lock to serve callbacks more faster by not allowing schedule.
The locked sections will not be locked for a long time.
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 fc4be8c35703..730808289a42 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -268,7 +268,7 @@ struct dlm_lkb { unsigned long lkb_timeout_cs; #endif - struct mutex lkb_cb_mutex; + spinlock_t lkb_cb_lock; struct work_struct lkb_cb_work; struct list_head lkb_cb_list; /* for ls_cb_delay or proc->asts */ struct dlm_callback lkb_callbacks[DLM_CALLBACKS_SIZE]; |