]> git.baikalelectronics.ru Git - 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)
commit0ca43c64e833a8bcbe1c47aa95d0d2835a22e471
tree963c5ca323ee3f1850072b9e6dbc90ff67c196e3
parent21a43f1c868e0fd6e720635efd70bb721bbe75f5
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