diff options
author | Kurt Hackel <kurt.hackel@oracle.com> | 2006-05-01 14:51:45 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-26 17:43:04 -0400 |
commit | 6ff06a93916b3f95e83c346f7530cf2f5c68ae0c (patch) | |
tree | 7708dbb53baf65d58aa5af259b5360abf0e11d14 /fs/ocfs2/dlm/dlmcommon.h | |
parent | e7e69eb38946ebef86e27442d01514fcf9c854ee (diff) |
ocfs2: give the dlm dirty list a reference on the lockres
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 78eccd0951e4..829cc3948804 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -235,18 +235,26 @@ struct dlm_lock_resource | |||
235 | struct qstr lockname; | 235 | struct qstr lockname; |
236 | struct kref refs; | 236 | struct kref refs; |
237 | 237 | ||
238 | /* please keep these next 3 in this order | 238 | /* |
239 | * some funcs want to iterate over all lists */ | 239 | * Please keep granted, converting, and blocked in this order, |
240 | * as some funcs want to iterate over all lists. | ||
241 | * | ||
242 | * All four lists are protected by the hash's reference. | ||
243 | */ | ||
240 | struct list_head granted; | 244 | struct list_head granted; |
241 | struct list_head converting; | 245 | struct list_head converting; |
242 | struct list_head blocked; | 246 | struct list_head blocked; |
247 | struct list_head purge; | ||
243 | 248 | ||
249 | /* | ||
250 | * These two lists require you to hold an additional reference | ||
251 | * while they are on the list. | ||
252 | */ | ||
244 | struct list_head dirty; | 253 | struct list_head dirty; |
245 | struct list_head recovering; // dlm_recovery_ctxt.resources list | 254 | struct list_head recovering; // dlm_recovery_ctxt.resources list |
246 | 255 | ||
247 | /* unused lock resources have their last_used stamped and are | 256 | /* unused lock resources have their last_used stamped and are |
248 | * put on a list for the dlm thread to run. */ | 257 | * put on a list for the dlm thread to run. */ |
249 | struct list_head purge; | ||
250 | unsigned long last_used; | 258 | unsigned long last_used; |
251 | 259 | ||
252 | unsigned migration_pending:1; | 260 | unsigned migration_pending:1; |