diff options
author | Alexander Aring <aahringo@redhat.com> | 2024-04-15 21:39:38 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2024-04-16 22:33:25 +0300 |
commit | 93a693d19d2a4aeaa5aede5354cc0f749a780374 (patch) | |
tree | 38bf2837637a67f229fa362c6a7c677b8d7254b9 /fs/dlm/dlm_internal.h | |
parent | 2d90354027ad2011c0c5a2a404fe81afc745c2a7 (diff) | |
download | linux-93a693d19d2a4aeaa5aede5354cc0f749a780374.tar.xz |
dlm: add rsb lists for iteration
To prepare for using rhashtable, add two rsb lists for iterating
through rsb's in two uncommon cases where this is necesssary:
- when dumping rsb state from debugfs, now using seq_list.
- when looking at all rsb's during recovery.
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index af88fc2f978c..6d06840029c3 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -339,6 +339,7 @@ struct dlm_rsb { struct list_head res_convertqueue; struct list_head res_waitqueue; + struct list_head res_rsbs_list; struct list_head res_root_list; /* used for recovery */ struct list_head res_masters_list; /* used for recovery */ struct list_head res_recover_list; /* used for recovery */ @@ -595,6 +596,9 @@ struct dlm_ls { spinlock_t ls_rsbtbl_lock; uint32_t ls_rsbtbl_size; + struct list_head ls_toss; + struct list_head ls_keep; + spinlock_t ls_waiters_lock; struct list_head ls_waiters; /* lkbs needing a reply */ |