Skip to contentSkip to conversation

+ ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jul 1, 2013 OCFS2

lore
Share & tools
lore
#0 lore raw

Subject: + ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 01 Jul 2013 16:18:53 -0700

The patch titled
Subject: ocfs2: submit disk heartbeat bio using WRITE_SYNC
has been added to the -mm tree. Its filename is
ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Noboru Iwamatsu <[email protected]>
Subject: 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.

---

 fs/ocfs2/cluster/heartbeat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/cluster/heartbeat.c renamed from fs/ocfs2/cluster/heartbeat.c~ocfs2-submit-disk-heartbeat-bio-using-write_sync +1 -1
diff -puN fs/ocfs2/cluster/heartbeat.c~ocfs2-submit-disk-heartbeat-bio-using-write_sync fs/ocfs2/cluster/heartbeat.c
@@ -492,7 +492,7 @@ static int o2hb_issue_node_write(struct
 	}
 
 	atomic_inc(&write_wc->wc_num_reqs);
-	submit_bio(WRITE, bio);
+	submit_bio(WRITE_SYNC, bio);
 
 	status = 0;
 bail:

_

Patches currently in -mm which might be from [email protected] are

ocfs2-submit-disk-heartbeat-bio-using-write_sync.patch ocfs2-consolidate-o2hb_global_hearbeat_mode_set-naming-convention.patch ocfs2-fix-a-comments-typo-at-o2quo_hb_still_up.patch ocfs2-adjust-switch_case-syntax-at-o2net_state_change.patch