]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ocfs2: o2hb: fix hb hung time
authorJunxiao Bi <junxiao.bi@oracle.com>
Fri, 27 May 2016 21:27:13 +0000 (14:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2016 21:49:37 +0000 (14:49 -0700)
commit6633ca573165e000867e50caf94f60a75399b68b
tree963c5ca323ee3f1850072b9e6dbc90ff67c196e3
parent88dbe98dc72fa0c2b778210e2079cd69d2477b36
ocfs2: o2hb: fix hb hung time

hr_last_timeout_start should be set as the last time where hb is
still OK.  When hb write timeout, hung time will be (jiffies -
hr_last_timeout_start).

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Ryan Ding <ryan.ding@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Gang He <ghe@suse.com>
Cc: rwxybh <rwxybh@126.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/heartbeat.c