aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmcommon.h
diff options
context:
space:
mode:
authorKurt Hackel <kurt.hackel@oracle.com>2007-01-17 20:05:53 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2007-02-07 15:07:24 -0500
commit3b8118cffad224415c6f6f35abe7ca2a1d79c05a (patch)
tree2896f977f25b1c874472bdabb90d72c755f95573 /fs/ocfs2/dlm/dlmcommon.h
parentd74c9803a90d733f5fb7270475aa6d14b45796c6 (diff)
ocfs2_dlm: Calling post handler function in assert master handler
This patch prevents the dlm from sending the clear refmap message before the set refmap. We use the newly created post function handler routine to accomplish the task. Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com> Signed-off-by: Sunil Mushran <sunil.mushran@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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h
index 2df6fde3e652..3f554711efe5 100644
--- a/fs/ocfs2/dlm/dlmcommon.h
+++ b/fs/ocfs2/dlm/dlmcommon.h
@@ -224,6 +224,7 @@ static inline void __dlm_set_joining_node(struct dlm_ctxt *dlm,
224#define DLM_LOCK_RES_MIGRATING 0x00000020 224#define DLM_LOCK_RES_MIGRATING 0x00000020
225#define DLM_LOCK_RES_DROPPING_REF 0x00000040 225#define DLM_LOCK_RES_DROPPING_REF 0x00000040
226#define DLM_LOCK_RES_BLOCK_DIRTY 0x00001000 226#define DLM_LOCK_RES_BLOCK_DIRTY 0x00001000
227#define DLM_LOCK_RES_SETREF_INPROG 0x00002000
227 228
228/* max milliseconds to wait to sync up a network failure with a node death */ 229/* max milliseconds to wait to sync up a network failure with a node death */
229#define DLM_NODE_DEATH_WAIT_MAX (5 * 1000) 230#define DLM_NODE_DEATH_WAIT_MAX (5 * 1000)
@@ -879,6 +880,7 @@ int dlm_master_request_handler(struct o2net_msg *msg, u32 len, void *data,
879 void **ret_data); 880 void **ret_data);
880int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data, 881int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data,
881 void **ret_data); 882 void **ret_data);
883void dlm_assert_master_post_handler(int status, void *data, void *ret_data);
882int dlm_deref_lockres_handler(struct o2net_msg *msg, u32 len, void *data, 884int dlm_deref_lockres_handler(struct o2net_msg *msg, u32 len, void *data,
883 void **ret_data); 885 void **ret_data);
884int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data, 886int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,