diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-11-30 20:47:16 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-12-07 19:42:26 +0100 |
commit | 21d9ac1a5376d949199398848006f6b14649f533 (patch) | |
tree | 673a07f065a27bd8d473c69cc915a586c970f257 /fs/dlm/lockspace.c | |
parent | fs: dlm: check for pending users filling buffers (diff) | |
download | linux-21d9ac1a5376d949199398848006f6b14649f533.tar.xz linux-21d9ac1a5376d949199398848006f6b14649f533.zip |
fs: dlm: use event based wait for pending remove
This patch will use an event based waitqueue to wait for a possible clash
with the ls_remove_name field of dlm_ls instead of doing busy waiting.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 2e51bd2bdacc..31384e7d6f90 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -512,6 +512,7 @@ static int new_lockspace(const char *name, const char *cluster, } spin_lock_init(&ls->ls_remove_spin); + init_waitqueue_head(&ls->ls_remove_wait); for (i = 0; i < DLM_REMOVE_NAMES_MAX; i++) { ls->ls_remove_names[i] = kzalloc(DLM_RESNAME_MAXLEN+1, |