]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: o2hb: don't negotiate if last hb fail
authorJunxiao Bi <junxiao.bi@oracle.com>
Mon, 21 Sep 2015 07:54:06 +0000 (15:54 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 5 May 2016 21:07:36 +0000 (14:07 -0700)
commit66bdec675259e61334bc40bac7dfbad40c39d04d
tree043598c43ff8100f1babc0af1b4f6e68299f6a6b
parent3eab7657f6826e36435fa18a8e95d9a35d14be5c
ocfs2: o2hb: don't negotiate if last hb fail

Sometimes io error is returned when storage is down for a while.
Like for iscsi device, stroage is made offline when session timeout,
and this will make all io return -EIO. For this case, nodes shouldn't
do negotiate timeout but should fence self. So let nodes fence self
when o2hb_do_disk_heartbeat return an error, this is the same behavior
with o2hb without negotiate timer.

Oracle-bug: 21862940

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Ryan Ding <ryan.ding@oracle.com>
fs/ocfs2/cluster/heartbeat.c