From: Srinivas Eeda Date: Wed, 17 Oct 2012 23:23:41 +0000 (-0700) Subject: ocfs2: submit disk heartbeat bio using WRITE_SYNC X-Git-Tag: v2.6.39-400.9.0~226^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1b64594cb8b10d8bb72af4b42661d153b6443eee;p=users%2Fjedix%2Flinux-maple.git ocfs2: submit disk heartbeat bio using WRITE_SYNC Under heavy I/O load, writing the disk heartbeat can be forced to wait for minutes, and this causes the node to be fenced. This patch tries to use WRITE_SYNC in submitting the heartbeat bio, so that writing the heartbeat will have a priority over other requests. Signed-off-by: Noboru Iwamatsu Acked-by: Tao Ma Acked-by: Sunil Mushran Signed-off-by: Srinivas Eeda --- diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index a4e855e3690e..61561c6a0cb0 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c @@ -500,7 +500,7 @@ static int o2hb_issue_node_write(struct o2hb_region *reg, } atomic_inc(&write_wc->wc_num_reqs); - submit_bio(WRITE, bio); + submit_bio(WRITE_SYNC, bio); status = 0; bail: