<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:SimSun}
@font-face
        {font-family:SimSun}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:SimSun}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 90.0pt 72.0pt 90.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Hi, everyone,</span></p>
<p class="MsoNormal"><span lang="EN-US">I had have a test with eight nodes and find one issue.</span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
The Linux kernel version is 3.2.40.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">As I migrate processes from one node to another, those processes is open the files on the OCFS2 storage. Sometime one node shutdown TCP connection with that node whose node number is larger because long time without any
message from it. </span></p>
<p class="MsoNormal"><span lang="EN-US">As the TCP connection shutdown, the node whose number larger did not restart connection to the node, whose number is little and shutdown the TCP connection.</span></p>
<p class="MsoNormal"><span lang="EN-US">So I review the code of the cluster and find it may be a bug.
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I changed it and have a test. </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Is there anybody having time to view and make sure that those changes is correct?</span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks a lot.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">The diff file is as below, of the file is /cluster/tcp.c:
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">root@gzh-dev:/home/dev/test_replace/ocfs2_ko# diff -pu ocfs2-ko-3.2-compare/cluster/tcp.c ocfs2-ko-3.2/cluster/tcp.c
</span></p>
<p class="MsoNormal"><span lang="EN-US">--- ocfs2-ko-3.2-compare/cluster/tcp.c 2012-10-29 19:33:19.534200000 +0800</span></p>
<p class="MsoNormal"><span lang="EN-US">+++ ocfs2-ko-3.2/cluster/tcp.c 2013-05-08 09:33:16.386277310 +0800</span></p>
<p class="MsoNormal"><span lang="EN-US">@@ -1699,6 +1698,10 @@ static void o2net_start_connect(struct w</span></p>
<p class="MsoNormal"><span lang="EN-US"> if (ret == -EINPROGRESS)</span></p>
<p class="MsoNormal"><span lang="EN-US"> ret = 0;</span></p>
<p class="MsoNormal"><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US">+ /** Reset the timeout with 0 to avoid connection again */</span></p>
<p class="MsoNormal"><span lang="EN-US">+ if (ret == 0) { </span></p>
<p class="MsoNormal"><span lang="EN-US">+ atomic_set(&nn->nn_timeout, 0);
</span></p>
<p class="MsoNormal"><span lang="EN-US">+ }</span></p>
<p class="MsoNormal"><span lang="EN-US">out:</span></p>
<p class="MsoNormal"><span lang="EN-US"> if (ret) {</span></p>
<p class="MsoNormal"><span lang="EN-US"> printk(KERN_NOTICE "o2net: Connect attempt to " SC_NODEF_FMT</span></p>
<p class="MsoNormal"><span lang="EN-US">@@ -1725,6 +1728,11 @@ static void o2net_connect_expired(struct</span></p>
<p class="MsoNormal"><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US"> spin_lock(&nn->nn_lock);</span></p>
<p class="MsoNormal"><span lang="EN-US"> if (!nn->nn_sc_valid) {</span></p>
<p class="MsoNormal"><span lang="EN-US">+ /** trigger reconnect with other nodes whose node number is little than local</span></p>
<p class="MsoNormal"><span lang="EN-US">+ * while they are still able to access the storage</span></p>
<p class="MsoNormal"><span lang="EN-US">+ */</span></p>
<p class="MsoNormal"><span lang="EN-US">+ atomic_set(&nn->nn_timeout, 1);</span></p>
<p class="MsoNormal"><span lang="EN-US">+ </span></p>
<p class="MsoNormal"><span lang="EN-US"> printk(KERN_NOTICE "o2net: No connection established with "</span></p>
<p class="MsoNormal"><span lang="EN-US"> "node %u after %u.%u seconds, giving up.\n",</span></p>
<p class="MsoNormal"><span lang="EN-US"> o2net_num_from_nn(nn),</span></p>
</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>