summaryrefslogtreecommitdiff
path: root/fs/dlm/dlm_internal.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-04-15 21:39:43 +0300
committerDavid Teigland <teigland@redhat.com>2024-04-16 22:45:57 +0300
commit15fd7e55177a8d6243096bb6b9536cd15f56d547 (patch)
treeffb40d5c8a085d8b20d58154a0c00a2dcc5c9871 /fs/dlm/dlm_internal.h
parente91313591b29ce724fe2f1bdf29f2482878fc275 (diff)
downloadlinux-15fd7e55177a8d6243096bb6b9536cd15f56d547.tar.xz
dlm: use rwlock for lkbidr
Convert the lock for lkbidr to an rwlock. Most idr lookups will use the read lock. 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 b675bffb61ae..19e57cbd5b13 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -582,7 +582,7 @@ struct dlm_ls {
struct kobject ls_kobj;
struct idr ls_lkbidr;
- spinlock_t ls_lkbidr_spin;
+ rwlock_t ls_lkbidr_lock;
struct rhashtable ls_rsbtbl;
rwlock_t ls_rsbtbl_lock;