[Ocfs2-devel] [RESEND_PATCH] OCFS2: submit disk heartbeat bio using WRITE_SYNC on behalf of Noboru

Jeff Liu jeff.liu at oracle.com
Fri Nov 2 08:13:29 PDT 2012


Hi Joel,

Last year, Noboru once posted a patch to fix OCFS2 unexpected reboot under heavy disk IO, which can be found at:
https://oss.oracle.com/pipermail/ocfs2-devel/2011-December/008438.html

Guru has reproduced this issue and verified that the proposal patch works to fix it.
Could you please accept it? maybe it's better to merge it to stable-kernel.


Thanks,
-Jeff


Signed-off-by: Noboru Iwamatsu <n_iwamatsu at jp.fujitsu.com>
Acked-by: Tao Ma <tm at tao.ma>
Acked-by: Sunil Mushran <sunil.mushran at gmail.com>
CC: Srinivas Eeeda <srinivas.eeda at oracle.com>
Reviewd-by: Jie Liu <jeff.liu at oracle.com>
Tested-by: Gurudas Pai <gurudas.pai at oracle.com>

---
 fs/ocfs2/cluster/heartbeat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index f7c648d..567e7af 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -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:
-- 
1.7.9.5



More information about the Ocfs2-devel mailing list