diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-04-02 22:18:05 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-04-09 19:44:49 +0300 |
commit | cc396e2355b5ca6e1aee005f3ce99bab8f37f5ff (patch) | |
tree | d1a5e2c16c95a0ee30e1575ce8f264d2a101d191 /fs/dlm/lock.c | |
parent | 097691dbadcdcaa6428adf0417cd227602eb60a4 (diff) | |
download | linux-cc396e2355b5ca6e1aee005f3ce99bab8f37f5ff.tar.xz |
dlm: convert res_lock to spinlock
Convert the rsb struct res_lock from a mutex to a spinlock
in preparation for processing messages in softirq context.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lock.c')
-rw-r--r-- | fs/dlm/lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index af677add4f5f..7b309231eebd 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -415,7 +415,7 @@ static int get_rsb_struct(struct dlm_ls *ls, const void *name, int len, r->res_ls = ls; r->res_length = len; memcpy(r->res_name, name, len); - mutex_init(&r->res_mutex); + spin_lock_init(&r->res_lock); INIT_LIST_HEAD(&r->res_lookup); INIT_LIST_HEAD(&r->res_grantqueue); |