aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2008-03-10 18:16:21 -0400
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:08 -0400
commit29576f8bb54045be944ba809d4fca1ad77c94165 (patch)
tree9fd56f286df824a819e8fe44316076f55bfb2030 /fs/ocfs2/dlm/dlmcommon.h
parent724bdca9b8449d9ee5f779dc27ee3d906a04508c (diff)
ocfs2/dlm: Link all lockres' to a tracking list
This patch links all the lockres' to a tracking list in dlm_ctxt. We will use this in an upcoming patch that will walk the entire list and to dump the lockres states to a debugfs file. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r--fs/ocfs2/dlm/dlmcommon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h
index 7525a8ae3943..cc31abeadb8e 100644
--- a/fs/ocfs2/dlm/dlmcommon.h
+++ b/fs/ocfs2/dlm/dlmcommon.h
@@ -101,6 +101,7 @@ struct dlm_ctxt
101 struct list_head purge_list; 101 struct list_head purge_list;
102 struct list_head pending_asts; 102 struct list_head pending_asts;
103 struct list_head pending_basts; 103 struct list_head pending_basts;
104 struct list_head tracking_list;
104 unsigned int purge_count; 105 unsigned int purge_count;
105 spinlock_t spinlock; 106 spinlock_t spinlock;
106 spinlock_t ast_lock; 107 spinlock_t ast_lock;
@@ -270,6 +271,9 @@ struct dlm_lock_resource
270 struct list_head dirty; 271 struct list_head dirty;
271 struct list_head recovering; // dlm_recovery_ctxt.resources list 272 struct list_head recovering; // dlm_recovery_ctxt.resources list
272 273
274 /* Added during init and removed during release */
275 struct list_head tracking; /* dlm->tracking_list */
276
273 /* unused lock resources have their last_used stamped and are 277 /* unused lock resources have their last_used stamped and are
274 * put on a list for the dlm thread to run. */ 278 * put on a list for the dlm thread to run. */
275 unsigned long last_used; 279 unsigned long last_used;