<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
<!--
body
        {line-height:1.5}
body
        {font-size:16pt;
        font-family:微软雅黑;
        color:rgb(0,0,0);
        line-height:1.5}
-->
</style>
</head>
<body>
<div><span></span>
<pre style="line-height:normal; widows:1">Hi all,</pre>
<pre style="line-height:normal; widows:1"><font face="monospace">A tiny race about <span style="line-height:1.5">JBD2 </span>has aborted to jbd2_journal_flush, </font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace"><font>because of unstable storage </font>link and I/O stress.</font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace">while <span style="line-height:1.5">JBD2 </span>state is aborted, have been -EIO error,</font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace">may cause all cluster nodes hung. so I thinks </font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace"><span style="line-height:1.5">JBD2 has aborted the journal, ocfs2 cannot continue and </span><span style="line-height:1.5">trig</span><span style="line-height:1.5">ger </span><span style="line-height:1.5">ocfs2_abort</span><span style="line-height:1.5">. </span></font></pre>
<pre style="line-height:normal; widows:1"><span style="line-height:1.5"><font face="monospace">Thanks, </font></span><font face="monospace">Any ideas about this patch?</font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace"><br></font></pre>
</div>
<div>
<pre style="line-height:normal; widows:1"><pre><font face="monospace">description:</font></pre></pre>
<pre style="line-height:normal; widows:1"><font face="monospace">ocfs2_commit_thread
ocfs2_commit_cache
jbd2_journal_flush</font></pre>
<pre style="line-height:normal; widows:1"><font face="monospace"><br></font></pre>
</div>
<div><font face="monospace">--- journal.c 2015-12-17 11:36:39.140542941 +0800<br>
+++ journal.c.diff 2015-12-17 11:39:21.308542922 +0800<br>
@@ -328,6 +328,9 @@<br>
if (status < 0) {<br>
up_write(&journal->j_trans_barrier);<br>
mlog_errno(status);<br>
+ if (is_journal_aborted(journal)) {<br>
+ ocfs2_abort(osb->sb, "Detect aborted journal,while committing cache.");<br>
+ }<br>
goto finally;<br>
}</font></div>
<hr color="#b5c4df" size="1" align="left" style="width:210px; height:1px">
<div><span>
<div style="margin:10px; font-family:verdana; font-size:10pt">
<div>zhangguanghui</div>
</div>
</span></div>
<span style="font-size:7.5pt; font-family:华文细黑; color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt; font-family:"Arial","sans-serif"; color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>