ocfs2/cluster: Bump up dlm protocol to version 1.1
authorSunil Mushran <sunil.mushran@oracle.com>
Sat, 9 Oct 2010 17:27:04 +0000 (10:27 -0700)
committerSunil Mushran <sunil.mushran@oracle.com>
Sat, 9 Oct 2010 17:27:04 +0000 (10:27 -0700)
dlm protocol 1.1. activates messages DLM_QUERY_REGION and DLM_QUERY_NODEINFO
that are a must for global heartbeat.

It also activates o2hb_global_heartbeat_active().

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/dlm/dlmdomain.c

index 29aee2128edb7ef37aba05dc7b323e90e9dd0138..6a1280a013ea1f635fb10e1b90d189895453bbca 100644 (file)
@@ -2429,6 +2429,6 @@ EXPORT_SYMBOL_GPL(o2hb_get_all_regions);
 
 int o2hb_global_heartbeat_active(void)
 {
-       return 0;
+       return (o2hb_heartbeat_mode == O2HB_HEARTBEAT_GLOBAL);
 }
 EXPORT_SYMBOL(o2hb_global_heartbeat_active);
index 78d428f5e10e91da7a36fa31b68776266d3a002d..58a93b953735ebcaeda134794195449da4e98a53 100644 (file)
@@ -135,7 +135,7 @@ static DECLARE_WAIT_QUEUE_HEAD(dlm_domain_events);
  */
 static const struct dlm_protocol_version dlm_protocol = {
        .pv_major = 1,
-       .pv_minor = 0,
+       .pv_minor = 1,
 };
 
 #define DLM_DOMAIN_BACKOFF_MS 200