<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:36:43 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-3765] 2.5.0&lt;-&gt;2.1.5 interop: sanity test 24u: (mdt_handler.c:224:mdt_lock_pdo_init()) ASSERTION( namelen &gt; 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-3765</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sanity test 24u hit the following failure on MDS:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;11:06:31:Lustre: DEBUG MARKER: == sanity test 24u: create stripe file == 11:06:31 (1376417191)
11:06:31:LustreError: 13255:0:(mdt_handler.c:224:mdt_lock_pdo_init()) ASSERTION( namelen &amp;gt; 0 ) failed: 
11:06:31:LustreError: 13255:0:(mdt_handler.c:224:mdt_lock_pdo_init()) LBUG
11:06:31:Pid: 13255, comm: mdt_01
11:06:31:
11:06:31:Call Trace:
11:06:31: [&amp;lt;ffffffffa04d0785&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
11:06:31: [&amp;lt;ffffffffa04d0d97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
11:06:31: [&amp;lt;ffffffffa0bdea65&amp;gt;] mdt_lock_pdo_init+0xe5/0xf0 [mdt]
11:06:31: [&amp;lt;ffffffffa0c127c6&amp;gt;] mdt_reint_open+0x1f6/0x2940 [mdt]
11:06:31: [&amp;lt;ffffffffa077b764&amp;gt;] ? lustre_msg_add_version+0x74/0xd0 [ptlrpc]
11:06:32: [&amp;lt;ffffffffa0ba256e&amp;gt;] ? md_ucred+0x1e/0x60 [mdd]
11:06:32: [&amp;lt;ffffffffa0be15d5&amp;gt;] ? mdt_ucred+0x15/0x20 [mdt]
11:06:32: [&amp;lt;ffffffffa0bf84ec&amp;gt;] ? mdt_root_squash+0x2c/0x3e0 [mdt]
11:06:32: [&amp;lt;ffffffffa0bfcc51&amp;gt;] mdt_reint_rec+0x41/0xe0 [mdt]
11:06:32: [&amp;lt;ffffffffa0bf3ed4&amp;gt;] mdt_reint_internal+0x544/0x8e0 [mdt]
11:06:32: [&amp;lt;ffffffffa0bf453d&amp;gt;] mdt_intent_reint+0x1ed/0x500 [mdt]
11:06:32: [&amp;lt;ffffffffa0bf2c09&amp;gt;] mdt_intent_policy+0x379/0x690 [mdt]
11:06:32: [&amp;lt;ffffffffa0737391&amp;gt;] ldlm_lock_enqueue+0x361/0x8f0 [ptlrpc]
11:06:32: [&amp;lt;ffffffffa075d1ed&amp;gt;] ldlm_handle_enqueue0+0x48d/0xf50 [ptlrpc]
11:06:32: [&amp;lt;ffffffffa0bf3586&amp;gt;] mdt_enqueue+0x46/0x130 [mdt]
11:06:32: [&amp;lt;ffffffffa0be8772&amp;gt;] mdt_handle_common+0x932/0x1750 [mdt]
11:06:32: [&amp;lt;ffffffffa0be9665&amp;gt;] mdt_regular_handle+0x15/0x20 [mdt]
11:06:32: [&amp;lt;ffffffffa078bbae&amp;gt;] ptlrpc_main+0xc4e/0x1a40 [ptlrpc]
11:06:32: [&amp;lt;ffffffffa078af60&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
11:06:32: [&amp;lt;ffffffff8100c0ca&amp;gt;] child_rip+0xa/0x20
11:06:32: [&amp;lt;ffffffffa078af60&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
11:06:32: [&amp;lt;ffffffffa078af60&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
11:06:32: [&amp;lt;ffffffff8100c0c0&amp;gt;] ? child_rip+0x0/0x20
11:06:32:
11:06:32:Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo report: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/e3f3b3d8-0525-11e3-8d88-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/e3f3b3d8-0525-11e3-8d88-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More instances:&lt;br/&gt;
&lt;a href=&quot;https://maloo.whamcloud.com/test_sets/369e054c-0059-11e3-bb00-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/369e054c-0059-11e3-bb00-52540035b04c&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://maloo.whamcloud.com/test_sets/0bf3fdbc-f8f5-11e2-8917-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/0bf3fdbc-f8f5-11e2-8917-52540035b04c&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://maloo.whamcloud.com/test_sets/59b2a818-f504-11e2-a8f6-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/59b2a818-f504-11e2-a8f6-52540035b04c&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
Lustre client build: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-master/1613/&quot;&gt;http://build.whamcloud.com/job/lustre-master/1613/&lt;/a&gt;&lt;br/&gt;
Lustre server build: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-b2_1/191/&quot;&gt;http://build.whamcloud.com/job/lustre-b2_1/191/&lt;/a&gt; (2.1.5)&lt;br/&gt;
Distro/Arch: RHEL6.4/x86_64&lt;br/&gt;
</environment>
        <key id="20358">LU-3765</key>
            <summary>2.5.0&lt;-&gt;2.1.5 interop: sanity test 24u: (mdt_handler.c:224:mdt_lock_pdo_init()) ASSERTION( namelen &gt; 0 ) failed</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="laisiyao">Lai Siyao</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                            <label>HB</label>
                            <label>mn1</label>
                    </labels>
                <created>Thu, 15 Aug 2013 15:05:49 +0000</created>
                <updated>Thu, 24 Oct 2013 19:03:30 +0000</updated>
                            <resolved>Tue, 1 Oct 2013 16:37:37 +0000</resolved>
                                    <version>Lustre 2.1.6</version>
                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="64341" author="yujian" created="Thu, 15 Aug 2013 15:08:43 +0000"  >&lt;p&gt;Lustre client build: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-b2_4/29/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/lustre-b2_4/29/&lt;/a&gt;&lt;br/&gt;
Lustre server build: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-b2_1/215/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/lustre-b2_1/215/&lt;/a&gt; (2.1.6)&lt;br/&gt;
Distro/Arch: RHEL6.4/x86_64&lt;/p&gt;

&lt;p&gt;The sanity test 24u also hung and hit the same LBUG on MDS:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;08:33:17:Lustre: DEBUG MARKER: == sanity test 24u: create stripe file == 08:33:10 (1376407990)
08:33:17:LustreError: 13776:0:(mdt_handler.c:224:mdt_lock_pdo_init()) ASSERTION( namelen &amp;gt; 0 ) failed: 
08:33:17:LustreError: 13776:0:(mdt_handler.c:224:mdt_lock_pdo_init()) LBUG
08:33:17:Pid: 13776, comm: mdt_00
08:33:18:
08:33:18:Call Trace:
08:33:18: [&amp;lt;ffffffffa0472785&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
08:33:18: [&amp;lt;ffffffffa0472d97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
08:33:18: [&amp;lt;ffffffffa0b6ea65&amp;gt;] mdt_lock_pdo_init+0xe5/0xf0 [mdt]
08:33:18: [&amp;lt;ffffffffa0ba28a6&amp;gt;] mdt_reint_open+0x1f6/0x2940 [mdt]
08:33:18: [&amp;lt;ffffffffa0715754&amp;gt;] ? lustre_msg_add_version+0x74/0xd0 [ptlrpc]
08:33:18: [&amp;lt;ffffffffa0b3356e&amp;gt;] ? md_ucred+0x1e/0x60 [mdd]
08:33:18: [&amp;lt;ffffffffa0b715d5&amp;gt;] ? mdt_ucred+0x15/0x20 [mdt]
08:33:18: [&amp;lt;ffffffffa0b884ec&amp;gt;] ? mdt_root_squash+0x2c/0x3e0 [mdt]
08:33:18: [&amp;lt;ffffffffa0b8cc51&amp;gt;] mdt_reint_rec+0x41/0xe0 [mdt]
08:33:18: [&amp;lt;ffffffffa0b83ed4&amp;gt;] mdt_reint_internal+0x544/0x8e0 [mdt]
08:33:18: [&amp;lt;ffffffffa0b8453d&amp;gt;] mdt_intent_reint+0x1ed/0x500 [mdt]
08:33:18: [&amp;lt;ffffffffa0b82c09&amp;gt;] mdt_intent_policy+0x379/0x690 [mdt]
08:33:18: [&amp;lt;ffffffffa06d1391&amp;gt;] ldlm_lock_enqueue+0x361/0x8f0 [ptlrpc]
08:33:18: [&amp;lt;ffffffffa06f71dd&amp;gt;] ldlm_handle_enqueue0+0x48d/0xf50 [ptlrpc]
08:33:18: [&amp;lt;ffffffffa0b83586&amp;gt;] mdt_enqueue+0x46/0x130 [mdt]
08:33:18: [&amp;lt;ffffffffa0b78772&amp;gt;] mdt_handle_common+0x932/0x1750 [mdt]
08:33:18: [&amp;lt;ffffffffa0b79665&amp;gt;] mdt_regular_handle+0x15/0x20 [mdt]
08:33:18: [&amp;lt;ffffffffa0725b9e&amp;gt;] ptlrpc_main+0xc4e/0x1a40 [ptlrpc]
08:33:18: [&amp;lt;ffffffffa0724f50&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
08:33:18: [&amp;lt;ffffffff8100c0ca&amp;gt;] child_rip+0xa/0x20
08:33:18: [&amp;lt;ffffffffa0724f50&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
08:33:18: [&amp;lt;ffffffffa0724f50&amp;gt;] ? ptlrpc_main+0x0/0x1a40 [ptlrpc]
08:33:18: [&amp;lt;ffffffff8100c0c0&amp;gt;] ? child_rip+0x0/0x20
08:33:18:
08:33:19:Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo report: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/ae6aa048-0569-11e3-b127-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/ae6aa048-0569-11e3-b127-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same test passed on Lustre 2.4.0 client with 2.1.5 server:&lt;br/&gt;
&lt;a href=&quot;https://maloo.whamcloud.com/sub_tests/397da174-c63d-11e2-ad5d-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/sub_tests/397da174-c63d-11e2-ad5d-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a regression issue on Lustre b2_4 branch.&lt;/p&gt;</comment>
                            <comment id="64353" author="di.wang" created="Thu, 15 Aug 2013 18:15:27 +0000"  >&lt;p&gt;This is clearly caused by &lt;/p&gt;

&lt;p&gt;    &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3544&quot; title=&quot;Writing to new files under NFS export from Lustre will result in ENOENT (SLES11SP2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3544&quot;&gt;&lt;del&gt;LU-3544&lt;/del&gt;&lt;/a&gt; nfs: writing to new files will return ENOENT&lt;/p&gt;

&lt;p&gt;    This happend with SLES11SP2 Lustre client, which in turn acts as an&lt;br/&gt;
    NFS server, exporting a subtree of an Lustre fs through NFS.&lt;/p&gt;

&lt;p&gt;    We detected that whenever we are writing to a new file using, fx,&lt;br/&gt;
    &apos;echo blah &amp;gt; newfile&apos;, it will return ENOENT error. We found&lt;br/&gt;
    out that this was caused by the anonymous dentry. In SLESS11SP2,&lt;br/&gt;
    anonymous dentries are assigned &apos;/&apos; as the name, instead of an&lt;br/&gt;
    empty string. When MDT handles the intent_open call, it will look&lt;br/&gt;
    up the obj by the name if it is not an empty string, and thus&lt;br/&gt;
    couldn&apos;t find it.&lt;/p&gt;

&lt;p&gt;    As MDS_OPEN_BY_FID is always set on this request, we never need&lt;br/&gt;
    to send the name in this request.  The fid is already available&lt;br/&gt;
    and should be used in case the file has been renamed.&lt;/p&gt;

&lt;p&gt;    Signed-off-by: Cheng Shao &amp;lt;cheng_shao@xyratex.com&amp;gt;&lt;br/&gt;
    Signed-off-by: Patrick Farrell &amp;lt;paf@cray.com&amp;gt;&lt;br/&gt;
    Change-Id: Ia8bd6f2814d05350d0a197df8a3ffd9729e2081b&lt;br/&gt;
    Reviewed-on: &lt;a href=&quot;http://review.whamcloud.com/6920&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6920&lt;/a&gt;&lt;br/&gt;
    Reviewed-by: Bob Glossman &amp;lt;bob.glossman@intel.com&amp;gt;&lt;br/&gt;
    Tested-by: Hudson&lt;br/&gt;
    Reviewed-by: Alexey Shvetsov &amp;lt;alexxy@gentoo.org&amp;gt;&lt;br/&gt;
    Reviewed-by: Lai Siyao &amp;lt;lai.siyao@intel.com&amp;gt;&lt;br/&gt;
    Tested-by: Maloo &amp;lt;whamcloud.maloo@gmail.com&amp;gt;&lt;br/&gt;
    Reviewed-by: James Simmons &amp;lt;uja.ornl@gmail.com&amp;gt;&lt;br/&gt;
    Reviewed-by: Oleg Drokin &amp;lt;oleg.drokin@intel.com&amp;gt;&lt;/p&gt;


&lt;p&gt;In this patch, it stops sending name for open by FID and set lovea(test 24u) request. But 2.1.5 server can not handle&lt;br/&gt;
this correctly. So we either&lt;/p&gt;

&lt;p&gt;1. fix 2.1.5 server to handle this zero name length issue. please check open_by_fid part in mdt_reint_open.&lt;br/&gt;
2. or fix b2_4 client to add open lock flag for lovea setting req, which can avoid the problem as well, IMHO. &lt;/p&gt;





</comment>
                            <comment id="64375" author="pjones" created="Fri, 16 Aug 2013 00:53:05 +0000"  >&lt;p&gt;Lai&lt;/p&gt;

&lt;p&gt;Could you please help with this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;peter&lt;/p&gt;</comment>
                            <comment id="64388" author="yujian" created="Fri, 16 Aug 2013 07:52:08 +0000"  >&lt;p&gt;This is blocking the whole test session on Lustre b2_4 client with 2.1.6 server:&lt;br/&gt;
&lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/ac905704-0569-11e3-b127-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/ac905704-0569-11e3-b127-52540035b04c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="64406" author="laisiyao" created="Fri, 16 Aug 2013 15:36:46 +0000"  >&lt;p&gt;IMO once client specified MDS_OPEN_BY_FID, MDS should never with open with name because name may be invalid, or it will cause inconsistency. If this is true, MDS open by fid code can be simplified a lot.&lt;/p&gt;

&lt;p&gt;Patch is on &lt;a href=&quot;http://review.whamcloud.com/#/c/7358/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7358/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="64898" author="paf" created="Thu, 22 Aug 2013 21:58:59 +0000"  >&lt;p&gt;Lai,&lt;/p&gt;

&lt;p&gt;Take a look at my latest in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3544&quot; title=&quot;Writing to new files under NFS export from Lustre will result in ENOENT (SLES11SP2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3544&quot;&gt;&lt;del&gt;LU-3544&lt;/del&gt;&lt;/a&gt;.  I think it belongs there and not here, but it could go in either.  It&apos;s about the problems with the proposed patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3765&quot; title=&quot;2.5.0&amp;lt;-&amp;gt;2.1.5 interop: sanity test 24u: (mdt_handler.c:224:mdt_lock_pdo_init()) ASSERTION( namelen &amp;gt; 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3765&quot;&gt;&lt;del&gt;LU-3765&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="65231" author="laisiyao" created="Wed, 28 Aug 2013 07:50:57 +0000"  >&lt;p&gt;Patch for master is on:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/7475/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7475/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/7476/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7476/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These patches enabled getattr/open-by-fid by default, thus either fid or name is packed in these requests, and server can handle op-by-fid correctly.&lt;/p&gt;

&lt;p&gt;Once these patches are accepted, they need to be backported to 2.4, and also fix 2.1 server code to maintain 2.5 &amp;lt;-&amp;gt; 2.1 interop. I&apos;ll continue working on this.&lt;/p&gt;</comment>
                            <comment id="65500" author="pjones" created="Sat, 31 Aug 2013 18:52:52 +0000"  >&lt;p&gt;We have reverted &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3544&quot; title=&quot;Writing to new files under NFS export from Lustre will result in ENOENT (SLES11SP2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3544&quot;&gt;&lt;del&gt;LU-3544&lt;/del&gt;&lt;/a&gt; from b2_4 for now but are continuing to work on a more complete fix on master&lt;/p&gt;</comment>
                            <comment id="66468" author="laisiyao" created="Thu, 12 Sep 2013 07:57:25 +0000"  >&lt;p&gt;Patch for b2_1 is on: &lt;a href=&quot;http://review.whamcloud.com/#/c/7627/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7627/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now it&apos;s ready to continue interop test between 2.5 and 2.1 with these three patches.&lt;/p&gt;</comment>
                            <comment id="68024" author="green" created="Tue, 1 Oct 2013 04:42:15 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3544&quot; title=&quot;Writing to new files under NFS export from Lustre will result in ENOENT (SLES11SP2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3544&quot;&gt;&lt;del&gt;LU-3544&lt;/del&gt;&lt;/a&gt; was reverted from master as well&lt;/p&gt;</comment>
                            <comment id="68069" author="adilger" created="Tue, 1 Oct 2013 16:37:37 +0000"  >&lt;p&gt;This problem was introduced by the patches for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3544&quot; title=&quot;Writing to new files under NFS export from Lustre will result in ENOENT (SLES11SP2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3544&quot;&gt;&lt;del&gt;LU-3544&lt;/del&gt;&lt;/a&gt;, and is no longer an issue now that the patch has been reverted.&lt;/p&gt;</comment>
                            <comment id="69116" author="jhammond" created="Wed, 16 Oct 2013 14:27:51 +0000"  >&lt;p&gt;The MDT is still generally at the mercy of the client to send valid names. Please see &lt;a href=&quot;http://review.whamcloud.com/#/c/7961/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7961/&lt;/a&gt; from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2875&quot; title=&quot;Remove LASSERT()s on return values from req_capsule_client_get() and similar&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2875&quot;&gt;&lt;del&gt;LU-2875&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="69694" author="cheng_shao" created="Wed, 23 Oct 2013 22:35:13 +0000"  >&lt;p&gt;Lai, for your comment below and the related patch here &lt;a href=&quot;http://review.whamcloud.com/#/c/7627/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7627/&lt;/a&gt;,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Once these patches are accepted, they need to be backported to 2.4, and also fix 2.1 server code to maintain 2.5 &amp;lt;-&amp;gt; 2.1 interop. I&apos;ll continue working on this.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Vitaly has a different thought - we shouldn&apos;t make change in the old version server code to accommodate features introduced in the newer version. The necessary changes should be done solely in the newer version to fix any interop issues with old versions. I think that is a legitimate comment, although fixing the server side is much simpler in this case. Thoughts?&lt;/p&gt;

</comment>
                            <comment id="69705" author="paf" created="Thu, 24 Oct 2013 01:27:57 +0000"  >&lt;p&gt;While I agree with Vitaly in the abstract, I don&apos;t see how we can fix this issue on the 2.4 clients.&lt;/p&gt;

&lt;p&gt;The open_by_fid code on 2.1 is activated when the namelength is 0.  SLES11SP2 changes anonymous dentries to be non-null/non-zero name length, so they no longer hit this check.  We tried to fix this by having ll_intent_file_open not pass the name, but hit issues.  The problem, as I see it, is that we need to only not send the name in the case of a root dentry.&lt;/p&gt;

&lt;p&gt;We tried that by using that code only when the DCACHE_DISCONNECTED flag was observed, but that still triggered the assertion on the MDS.  It&apos;s not clear to me why - I thought DCACHE_DISCONNECTED was unique to the root dentry, but the observed behavior suggests not.&lt;/p&gt;

&lt;p&gt;The other possibility is that DCACHE_DISCONNECTED does uniquely identify the root dentry, but the zero-length root dentry from CentOS/SLES11SP1 comes across in ll_intent_file_open differently than just a 0 namelen and null pointer for the name, and that this difference is essential in avoiding the MDS crashes.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;THIS INFORMATION IS INCORRECT.  See my reply to Andreas below.&amp;#93;&lt;/span&gt;&lt;br/&gt;
So the problem remains: In order to achieve a 2.4/2.5 only fix, we must somehow force open_by_fid on 2.1 servers for root dentries, and only for root dentries.  And we need to do it in a way that does not crash the 2.1 server, or cause other problems on 2.4 because of the nulled file name.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;^-- This is not only for root dentries, it is for all anonymous dentries.&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I&apos;m not sure that&apos;s possible.  That&apos;s why we chose to add MDS_OPEN_BY_FID to 2.1.  This is a fairly minor patch to 2.1, as all it adds is this way to force 2.1 to do open_by_fid.&lt;/p&gt;</comment>
                            <comment id="69825" author="adilger" created="Thu, 24 Oct 2013 18:21:09 +0000"  >&lt;p&gt;FYI, DCACHE_DUSCONNECTED is used on any NFS inode that is not connected to the namespace (i.e. if NFS client does its own getattr-by-handle operation). To determine the root dentry you should check if dentry == sb-&amp;gt;s_root. &lt;/p&gt;</comment>
                            <comment id="69834" author="paf" created="Thu, 24 Oct 2013 19:03:30 +0000"  >&lt;p&gt;Andreas:  Thanks for the reminder.&lt;/p&gt;

&lt;p&gt;Reading it again, I see my comment above is flawed.  The change in newer kernels is all anonymous dentries, I wasn&apos;t thinking clearly when I wrote that.  We don&apos;t need to identify merely the root dentries, this issue applies to all anonymous dentries.&lt;/p&gt;

&lt;p&gt;The problem is that when we change the names as we did, we fail that NAMELEN related assertion in 2.1.  In retrospect, I think we have succeeded in our goal of isolating anonymous dentries, but perhaps there is a difference between passing NULL in to ll_prep_md_op_data for the name and the anonymous dentry names in 2.6.32 kernels.  They appear (I haven&apos;t tested, but this is my reading of the code) to be pointers to a string containing nothing but the null terminator, but they aren&apos;t actually NULL.&lt;/p&gt;

&lt;p&gt;I wonder if this difference isn&apos;t significant.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="19654">LU-3544</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17713">LU-2875</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="18586">LU-3233</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvy1j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9699</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>