ocfs2/cluster: Abort heartbeat start on hard-ro devices
authorSunil Mushran <sunil.mushran@oracle.com>
Sun, 24 Jul 2011 17:21:54 +0000 (10:21 -0700)
committerSunil Mushran <sunil.mushran@oracle.com>
Sun, 24 Jul 2011 17:21:54 +0000 (10:21 -0700)
commitd2eece376648d2f7ba0a7d78f3c4d0421e608ac2
tree6d43ac36bcbdf01f544027ec5d2c1427411ab498
parentb6844e8f64920cdee620157252169ba63afb0c89
ocfs2/cluster: Abort heartbeat start on hard-ro devices

Currently if the heartbeat device is hard-ro, the o2hb thread keeps chugging
along and dumping errors along the way. The user needs to manually stop the
heartbeat.

The patch addresses this shortcoming by adding a limit to the number of times
the hb thread will iterate in an unsteady state. If the hb thread does not
ready steady state in that many interation, the start is aborted.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
fs/ocfs2/cluster/heartbeat.c