Skip to content

Commit

Permalink
ocfs2: submit disk heartbeat bio using WRITE_SYNC
Browse files Browse the repository at this point in the history
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@jp.fujitsu.com>
Acked-by: Tao Ma <tm@tao.ma>
Acked-by: Sunil Mushran <sunil.mushran@gmail.com>
Cc: Srinivas Eeeda <srinivas.eeda@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Tested-by: Gurudas Pai <gurudas.pai@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Noboru Iwamatsu authored and Linus Torvalds committed Jul 3, 2013
1 parent ef962df commit e873fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/cluster/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e873fdb

Please sign in to comment.