<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>H</tt><tt>i Guanghui,</tt><tt><br>
    </tt><tt><br>
    </tt><tt>I think I encounter an problem just like you. But </tt><tt>it's
      not </tt><tt>race case.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Every time </tt><tt>ocfs2_commit_thread</tt><tt> receive
      an error</tt><tt> from </tt><tt>jbd2_journal_flush (which may
      cause by disk io error), it will continue to try commit journal.
      But in this case, journal should run into abort state, so retry
      commit is useless. And even worse, the lock resource hold by this
      node can not be release, so entire cluster hung.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>I have write a patch about this, and my solution is just
      like yours, will send it in another email.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Thanks,</tt><tt><br>
    </tt><tt>R</tt><tt>yan</tt><tt><br>
    </tt><tt><br>
    </tt>
    <div class="moz-cite-prefix"><tt>On 12/17/2015 01:33 PM,
        Zhangguanghui wrote:</tt><tt><br>
      </tt></div>
    <blockquote cite="mid:2015121713343524045332@h3c.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <tt>
      </tt>
      <style>
<!--
body
        {line-height:1.5}
body
        {font-size:16pt;
        font-family:&#24494;&#36719;&#38597;&#40657;;
        color:rgb(0,0,0);
        line-height:1.5}
-->
</style>
      <div><tt><span></span></tt>
        <pre style="line-height:normal; widows:1">Hi all,</pre>
        <pre style="line-height:normal; widows:1">A tiny race about <span style="line-height:1.5">JBD2 </span>has aborted to jbd2_journal_flush,&nbsp;</pre>
        <pre style="line-height:normal; widows:1"><font>because of unstable&nbsp;storage </font>link and I/O stress.</pre>
        <pre style="line-height:normal; widows:1">while <span style="line-height:1.5">JBD2 </span>state is aborted, have been -EIO error,</pre>
        <pre style="line-height:normal; widows:1">may cause all cluster nodes hung. so I thinks&nbsp;</pre>
        <pre style="line-height:normal; widows:1"><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">.&nbsp;</span></pre>
        <pre style="line-height:normal; widows:1"><span style="line-height:1.5">Thanks, </span>Any ideas about this patch?</pre>
        <pre style="line-height:normal; widows:1">
</pre>
      </div>
      <div>
        <pre style="line-height:normal; widows:1"><pre>description:</pre></pre>
        <pre style="line-height:normal; widows:1">ocfs2_commit_thread
  ocfs2_commit_cache
    jbd2_journal_flush</pre>
        <pre style="line-height:normal; widows:1">
</pre>
      </div>
      <div><tt>--- journal.c 2015-12-17 11:36:39.140542941 +0800</tt><tt><br>
        </tt><tt>
          +++ journal.c.diff 2015-12-17 11:39:21.308542922 +0800</tt><tt><br>
        </tt><tt>
          @@ -328,6 +328,9 @@</tt><tt><br>
        </tt><tt>
          if (status &lt; 0) {</tt><tt><br>
        </tt><tt>
          up_write(&amp;journal-&gt;j_trans_barrier);</tt><tt><br>
        </tt><tt>
          mlog_errno(status);</tt><tt><br>
        </tt><tt>
          + if (is_journal_aborted(journal)) {</tt><tt><br>
        </tt><tt>
          + ocfs2_abort(osb-&gt;sb, "Detect aborted journal,while
          committing cache.");</tt><tt><br>
        </tt><tt>
          + }</tt><tt><br>
        </tt><tt>
          goto finally;</tt><tt><br>
        </tt><tt>
          }</tt></div>
      <hr style="width:210px; height:1px" color="#b5c4df" size="1"
        align="left">
      <div><span>
          <div style="margin: 10px; font-size: 10pt;">
            <div>zhangguanghui</div>
          </div>
        </span></div>
      <tt><span style="font-size: 7.5pt; color: gray;"><span
            lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
          </span>&#26412;&#37038;&#20214;&#21450;&#20854;&#38468;&#20214;&#21547;&#26377;&#26477;&#24030;&#21326;&#19977;&#36890;&#20449;&#25216;&#26415;&#26377;&#38480;&#20844;&#21496;&#30340;&#20445;&#23494;&#20449;&#24687;&#65292;&#20165;&#38480;&#20110;&#21457;&#36865;&#32473;&#19978;&#38754;&#22320;&#22336;&#20013;&#21015;&#20986;<span
            lang="EN-US"><br>
          </span>&#30340;&#20010;&#20154;&#25110;&#32676;&#32452;&#12290;&#31105;&#27490;&#20219;&#20309;&#20854;&#20182;&#20154;&#20197;&#20219;&#20309;&#24418;&#24335;&#20351;&#29992;&#65288;&#21253;&#25324;&#20294;&#19981;&#38480;&#20110;&#20840;&#37096;&#25110;&#37096;&#20998;&#22320;&#27844;&#38706;&#12289;&#22797;&#21046;&#12289;<span
            lang="EN-US"><br>
          </span>&#25110;&#25955;&#21457;&#65289;&#26412;&#37038;&#20214;&#20013;&#30340;&#20449;&#24687;&#12290;&#22914;&#26524;&#24744;&#38169;&#25910;&#20102;&#26412;&#37038;&#20214;&#65292;&#35831;&#24744;&#31435;&#21363;&#30005;&#35805;&#25110;&#37038;&#20214;&#36890;&#30693;&#21457;&#20214;&#20154;&#24182;&#21024;&#38500;&#26412;<span
            lang="EN-US"><br>
          </span>&#37038;&#20214;&#65281;<span lang="EN-US"><br>
          </span></span></tt><tt><span style="font-size: 7.5pt; color:
          gray;" lang="EN-US">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></tt><tt>
      </tt><tt><br>
      </tt>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <tt><br>
      </tt>
      <pre wrap="">_______________________________________________
Ocfs2-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ocfs2-devel@oss.oracle.com">Ocfs2-devel@oss.oracle.com</a>
<a class="moz-txt-link-freetext" href="https://oss.oracle.com/mailman/listinfo/ocfs2-devel">https://oss.oracle.com/mailman/listinfo/ocfs2-devel</a></pre>
    </blockquote>
    <tt><br>
    </tt>
  </body>
</html>