]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: o2net: set tcp user timeout to max value
authorJunxiao Bi <junxiao.bi@oracle.com>
Thu, 26 Jun 2014 00:42:23 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:23 +0000 (10:42 +1000)
commit7825c747b51c4de47cb9014af19353471a10a426
tree82651f74f784e72c0fee705d99170e2adc6998d7
parent98cc0f82e4cc82cc15cda640ee650eb20b2fe71b
ocfs2: o2net: set tcp user timeout to max value

When tcp retransmit timeout(15mins), the connection will be closed.
Pending messages may be lost during this time.  So we set tcp user timeout
to override the retransmit timeout to the max value.  This is OK for ocfs2
since we have disk heartbeat, if peer crash, the disk heartbeat will
timeout and it will be evicted, if disk heartbeat not timeout and
connection idle for a long time, then this means the cluster enters
split-brain state, since fence can't happen, we'd better keep the
connection and wait network recover.

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/cluster/tcp.c
fs/ocfs2/cluster/tcp.h