diff options
| author | Alexander Aring <aahringo@redhat.com> | 2024-04-02 15:18:00 -0400 |
|---|---|---|
| committer | David Teigland <teigland@redhat.com> | 2024-04-09 11:44:49 -0500 |
| commit | aff46e0f24cd3adc54ec83f4cf834ff9ccb69307 (patch) | |
| tree | 918487c6ff1b918de6ab440d13afb2500126830f /fs/dlm/lockspace.c | |
| parent | 29e345f3c68e2bcf094162fc36394d348ccfb9ff (diff) | |
| download | linux-next-aff46e0f24cd3adc54ec83f4cf834ff9ccb69307.tar.gz linux-next-aff46e0f24cd3adc54ec83f4cf834ff9ccb69307.zip | |
dlm: use a new list for recovery of master rsb names
Add a new "masters_list" for master rsb structs, with a new
rwlock. The new list is created and used during the recovery
process to send the master rsb names to new nodes. With this
change, the current "root_list" can be used without locking.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 0455dddb0797..c427c76b5f07 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_root_list); init_rwsem(&ls->ls_root_sem); + INIT_LIST_HEAD(&ls->ls_masters_list); + rwlock_init(&ls->ls_masters_lock); spin_lock(&lslist_lock); ls->ls_create_count = 1; |
