]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2/cluster: Abort heartbeat start on hard-ro devices
authorSunil Mushran <sunil.mushran@oracle.com>
Mon, 20 Jun 2011 17:07:08 +0000 (10:07 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 29 Mar 2012 19:40:55 +0000 (12:40 -0700)
commit42fc9203e08f79aef14f5b855759d7d39c4c5588
tree5ae821aa8455ba0bfcb61d5232827a43b49f78b6
parent3e492ee7705ae87ec25ede141d806ce36c3203ec
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