ocfs2: submit disk heartbeat bio using WRITE_SYNC
PATCH 1/4 ocfs2: submit disk heartbeat bio using WRITE_SYNC
From: Noboru Iwamatsu <[email protected]>
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 <[email protected]>
Acked-by Tao Ma <[email protected]>
Acked-by Sunil Mushran <[email protected]>
CC Srinivas Eeeda <[email protected]>
Reviewed-by Jie Liu <[email protected]>
Tested-by Gurudas Pai <[email protected]>
--- fs/ocfs2/cluster/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/cluster/heartbeat.c +1 -1
@@ -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:
Signature · 1 line
1.7.9.5