Skip to contentSkip to conversation

ocfs2: submit disk heartbeat bio using WRITE_SYNC

PATCH New Jeff Liu 1 participant 1 message Jun 29, 2013 OCFS2

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

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.

---
 fs/ocfs2/cluster/heartbeat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/cluster/heartbeat.c +1 -1
index 42252bf..f89b46b 100644
@@ -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