summaryrefslogtreecommitdiff
path: root/fs/ocfs2/cluster/tcp.h
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.de>2006-12-04 14:04:54 +0100
committerMark Fasheh <mark.fasheh@oracle.com>2006-12-07 18:13:20 -0800
commitb5dd80304da482d77b2320e1a01a189e656b9770 (patch)
tree03614e8ba0016a65c52a119a047de98ea50afaac /fs/ocfs2/cluster/tcp.h
parent296b75ed6a3b35f613961cefe4962ce1cf586d77 (diff)
[patch 2/3] OCFS2 Configurable timeouts
Allow configuration of OCFS2 timeouts from userspace via configfs Signed-off-by: Andrew Beekhof <abeekhof@suse.de> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/tcp.h')
-rw-r--r--fs/ocfs2/cluster/tcp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/tcp.h b/fs/ocfs2/cluster/tcp.h
index 616ff2b8434a..2e08976050fb 100644
--- a/fs/ocfs2/cluster/tcp.h
+++ b/fs/ocfs2/cluster/tcp.h
@@ -54,6 +54,13 @@ typedef int (o2net_msg_handler_func)(struct o2net_msg *msg, u32 len, void *data)
#define O2NET_MAX_PAYLOAD_BYTES (4096 - sizeof(struct o2net_msg))
+/* same as hb delay, we're waiting for another node to recognize our hb */
+#define O2NET_RECONNECT_DELAY_MS_DEFAULT 2000
+
+#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT 5000
+#define O2NET_IDLE_TIMEOUT_MS_DEFAULT 10000
+
+
/* TODO: figure this out.... */
static inline int o2net_link_down(int err, struct socket *sock)
{