]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ocfs2: submit disk heartbeat bio using WRITE_SYNC
authorSrinivas Eeda <srinivas.eeda@oracle.com>
Wed, 17 Oct 2012 23:23:41 +0000 (16:23 -0700)
committerSrinivas Eeda <srinivas.eeda@oracle.com>
Wed, 17 Oct 2012 23:23:41 +0000 (16:23 -0700)
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 <n_iwamatsu at jp.fujitsu.com>
Acked-by: Tao Ma <boyu.mt at taobao.com>
Acked-by: Sunil Mushran <sunil.mushran at oracle.com>
Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
fs/ocfs2/cluster/heartbeat.c

index a4e855e3690e6ab844d37788b71649975321cb19..61561c6a0cb03b2f7ff5ceeb40aa816b33993095 100644 (file)
@@ -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: