<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,128,0);
        line-height:1.5}
-->
</style>
</head>
<body>
<div>
<pre><span style="font-size:16pt; line-height:1.5; font-family:微软雅黑; background-color:window">In the process of dlm_prepare_lvb_for_migration,</span></pre>
<pre><span style="font-family:微软雅黑; font-size:16pt; line-height:1.5">if </span><span style="font-family:微软雅黑; font-size:16pt; line-height:1.5">all va</span><span style="font-family:微软雅黑; font-size:16pt; line-height:1.5">lid locks have not the </span><span style="font-family:微软雅黑; font-size:16pt; line-height:1.5">same LVB, </span><span style="font-family:微软雅黑; font-size:16pt; line-height:1.5; background-color:window">then BUGs.</span></pre>
<pre><span style="background-color:window; font-family:微软雅黑; font-size:16pt; line-height:1.5">the patch ensures that the other valid locks have the</span></pre>
<pre><pre><font face="微软雅黑">same a LVB </font><i style="font-size:16pt; line-height:1.5; font-family:微软雅黑; background-color:window">from the first valid lock</i><span style="font-size:16pt; background-color:window; font-family:微软雅黑; line-height:normal; white-space:normal"> </span><span style="background-color:window; font-family:微软雅黑; font-size:16pt; line-height:normal; white-space:normal">to solute the problem of BUGs</span></pre><pre><span style="background-color:window; font-family:微软雅黑; font-size:16pt; line-height:normal; white-space:normal"><br></span></pre><pre><font face="微软雅黑"><span style="background-color:rgb(255,255,255)">Finally, any feedback about this process (positive or negative) would be
greatly appreciated.
Thanks,
        --zgh</span></font></pre><pre><font face="微软雅黑"><span style="background-color:rgb(255,255,255)"><br></span></font></pre></pre>
</div>
<div>
<div>
<pre><i style="font-size:16pt; line-height:1.5; font-family:微软雅黑; background-color:window">static void dlm_prepare_lvb_for_migration(struct dlm_lock *lock, </i><span style="font-size:16pt; line-height:1.5; font-family:微软雅黑; font-style:italic">struct dlm_migratable_lockres *mres,</span><span style="font-size:16pt; line-height:1.5; font-family:微软雅黑; font-style:italic">int queue)</span><span style="font-size:16pt; line-height:1.5; font-style:italic; font-family:微软雅黑"> </span></pre>
</div>
<div><code><font face="微软雅黑"><i>--- dlmrecovery.c 2014-12-17 01:39:45.000000000 +0800 <br>
+++ dlmrecovery0.c 2015-05-16 10:59:59.683924862 +0800 <br>
@@ -1215,7 +1215,10 @@ <br>
lock->lockres->lockname.len, lock->lockres->lockname.name, <br>
lock->ml.node); <br>
dlm_print_one_lock_resource(lock->lockres); <br>
- BUG(); <br>
+ <br>
+ /* Ensure the lvb copied for migration matches the first valid locks */ <br>
+ memcpy(lock->lksb->lvb, mres->lvb, DLM_LVB_LEN); <br>
+ return; <br>
}</i></font></code></div>
</div>
<div><font face="monospace"><i><br>
</i></font></div>
<div><font face="monospace"><i><br>
</i></font></div>
<div>
<pre><font face="微软雅黑"><i>On Mon, Jan 25, 2010 at 04:57:39PM -0800, Sunil Mushran wrote:
> During lock resource migration, o2dlm fills the packet with a LVB from the
> first valid lock. For sanity, it ensures that the other valid locks have the
> same LVB. If not, it BUGs.
>
> The valid locks are ones that have granted EX or PR lock levels and are either
> on the Granted or Converting lists. Locks in the Blocked list cannot have a
> valid LVB.</i></font></pre>
<pre><i style="font-size:16pt; line-height:1.5; font-family:微软雅黑; background-color:window"><br></i></pre>
<pre><br></pre>
<pre><br></pre>
</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 10102</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>