summaryrefslogtreecommitdiffstats
path: root/fs/dlm/lockspace.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-04-02 15:18:02 -0400
committerDavid Teigland <teigland@redhat.com>2024-04-09 11:44:49 -0500
commit3ae67760567438ff857e79bd799154b1f7da3b2a (patch)
tree9fbd4209b0121740070377aee2bab8781550ebb4 /fs/dlm/lockspace.c
parent3a747f4a2ee85d51b905e2df940de4a924f8060a (diff)
downloadlinux-3ae67760567438ff857e79bd799154b1f7da3b2a.tar.gz
linux-3ae67760567438ff857e79bd799154b1f7da3b2a.tar.bz2
linux-3ae67760567438ff857e79bd799154b1f7da3b2a.zip
dlm: add new struct to save position in dlm_copy_master_names
Add a new struct to save the current position in the rsb masters_list while sending the rsb names to other nodes. The rsb names are sent in multiple chunks, and for each new chunk, the new "dlm_dir_dump" struct saves the last position in the masters_list. The new struct is also used to save more information to sanity check the recovery process. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index da756e5c0f6c..af7769f8e38c 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -582,6 +582,8 @@ static int new_lockspace(const char *name, const char *cluster,
init_waitqueue_head(&ls->ls_wait_general);
INIT_LIST_HEAD(&ls->ls_masters_list);
rwlock_init(&ls->ls_masters_lock);
+ INIT_LIST_HEAD(&ls->ls_dir_dump_list);
+ rwlock_init(&ls->ls_dir_dump_lock);
spin_lock(&lslist_lock);
ls->ls_create_count = 1;