<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:00:09 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-6428] Lustre client Compilation failed build with kernel 3.2</title>
                <link>https://jira.whamcloud.com/browse/LU-6428</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While compiling the Lustre client with newer kernel. It fails with the following error:&lt;br/&gt;
Command Used to compile:&lt;br/&gt;
./configure&lt;br/&gt;
--with-linux=$&lt;/p&gt;
{kernel_source_dir}
&lt;p&gt;--with-o2ib=$&lt;/p&gt;
{dkms_tree}
&lt;p&gt;/mlnx-ofed-kernel/$&lt;/p&gt;
{OFED_VERSION}
&lt;p&gt;/build&lt;br/&gt;
--disable-server&lt;br/&gt;
--disable-quilt&lt;br/&gt;
--disable-dependency-tracking&lt;br/&gt;
--disable-doc&lt;br/&gt;
--disable-utils&lt;br/&gt;
--disable-liblustre&lt;br/&gt;
--disable-snmp&lt;br/&gt;
--disable-zerocopy&lt;br/&gt;
--disable-tests&lt;br/&gt;
--enable-quota&lt;br/&gt;
make&lt;br/&gt;
Error:-&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c: In function&lt;br/&gt;
&apos;ll_invalidate_aliases&apos;:&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
initialization from incompatible pointer type &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror&amp;#93;&lt;/span&gt;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
/var/lib/dkms/lustre/2.5.24/build/lustre/llite/dcache.c:302:2: error:&lt;br/&gt;
&apos;struct dentry&apos; has no member named &apos;d_alias&apos;&lt;br/&gt;
cc1: all warnings being treated as errors&lt;/p&gt;</description>
                <environment>lustre-2.7.51&lt;br/&gt;
Ubuntu 12.04&lt;br/&gt;
Kernel Version: kernel 3.2.68</environment>
        <key id="29390">LU-6428</key>
            <summary>Lustre client Compilation failed build with kernel 3.2</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="1">Fixed</resolution>
                                        <assignee username="bogl">Bob Glossman</assignee>
                                    <reporter username="gnlwlb">wu libin</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 3 Apr 2015 03:20:01 +0000</created>
                <updated>Thu, 23 Jun 2016 20:11:40 +0000</updated>
                            <resolved>Fri, 1 May 2015 11:29:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="111470" author="pjones" created="Fri, 3 Apr 2015 03:55:03 +0000"  >&lt;p&gt;Hi there&lt;/p&gt;

&lt;p&gt;Am I correct in thinking that you are trying to build against IEEL rather than a community version of Lustre? It appears as such so I have moved this issue to the DDN project.&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="111471" author="gnlwlb" created="Fri, 3 Apr 2015 04:09:21 +0000"  >&lt;p&gt;Hi, Peter&lt;/p&gt;

&lt;p&gt;The problem has been reported here:&lt;br/&gt;
&lt;a href=&quot;https://jira.hpdd.intel.com/browse/DDN-153&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/DDN-153&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I open a new ticket LU-xxxx just because the problem is a general problem also existed on master, so i open a general ticket.&lt;/p&gt;

&lt;p&gt;Libin&lt;/p&gt;</comment>
                            <comment id="111473" author="pjones" created="Fri, 3 Apr 2015 04:19:19 +0000"  >&lt;p&gt;Libin&lt;/p&gt;

&lt;p&gt;Ah ok. Then please can you correct the environment to be more accurate? Presently it says lustre-2.5.24&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="111474" author="pjones" created="Fri, 3 Apr 2015 04:21:36 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/14060/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14060/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="111477" author="gnlwlb" created="Fri, 3 Apr 2015 06:02:53 +0000"  >&lt;p&gt;Peter&lt;/p&gt;

&lt;p&gt;Sorry for confusing!&lt;br/&gt;
The environment is:&lt;br/&gt;
lustre-2.7.51&lt;br/&gt;
Ubuntu 12.04&lt;br/&gt;
Kernel Version: kernel 3.2.68&lt;/p&gt;

&lt;p&gt;I can&apos;t change the issue, could you help me?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="111490" author="pjones" created="Fri, 3 Apr 2015 14:06:37 +0000"  >&lt;p&gt;ok done &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="111534" author="gnlwlb" created="Sat, 4 Apr 2015 02:16:04 +0000"  >&lt;p&gt;Thanks, peter!&lt;/p&gt;</comment>
                            <comment id="111537" author="pjones" created="Sat, 4 Apr 2015 14:07:01 +0000"  >&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Can you please take care of this patch?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="112378" author="simmonsja" created="Mon, 20 Apr 2015 13:18:11 +0000"  >&lt;p&gt;Since I have a test cluster running Ubuntu 14 I also have run into this issue. I found a bug in the current patch. Also for Ubuntu 14 more patches will be needed to make this work. I will push those additional patches under this ticket.&lt;/p&gt;</comment>
                            <comment id="112379" author="simmonsja" created="Mon, 20 Apr 2015 13:18:53 +0000"  >&lt;p&gt;Linking to the upstream work since Ubuntu back ported patches from 3.18 kernels.&lt;/p&gt;</comment>
                            <comment id="112400" author="gerrit" created="Mon, 20 Apr 2015 15:43:22 +0000"  >&lt;p&gt;James Simmons (uja.ornl@yahoo.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14507&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14507&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6428&quot; title=&quot;Lustre client Compilation failed build with kernel 3.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6428&quot;&gt;&lt;del&gt;LU-6426&lt;/del&gt;&lt;/a&gt; lustre: remove EIOCBRETRY handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9bcd6b5aca0b14601123a2e024f8c1fb41826505&lt;/p&gt;</comment>
                            <comment id="112402" author="thomas.stibor" created="Mon, 20 Apr 2015 15:52:23 +0000"  >&lt;p&gt;I ran into the same problem with Debian Wheezy 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux and Lustre 2.5.3.90&lt;br/&gt;
Is there already a patch for this problem? I did a quick hack:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-none&quot;&gt;diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c
index 7ea2f73..b3899a4 100644
--- a/lustre/llite/dcache.c
+++ b/lustre/llite/dcache.c
@@ -299,7 +299,7 @@ void ll_invalidate_aliases(struct inode *inode)
               inode-&amp;gt;i_ino, inode-&amp;gt;i_generation, inode);
 
        ll_lock_dcache(inode);
-       ll_d_hlist_for_each_entry(dentry, p, &amp;amp;inode-&amp;gt;i_dentry, d_alias) {
+       ll_d_hlist_for_each_entry(dentry, p, &amp;amp;inode-&amp;gt;i_dentry, d_u.d_alias) {
                CDEBUG(D_DENTRY, &quot;dentry in drop %.*s (%p) parent %p &quot;
                       &quot;inode %p flags %d\n&quot;, dentry-&amp;gt;d_name.len,
                       dentry-&amp;gt;d_name.name, dentry, dentry-&amp;gt;d_parent,
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-none&quot;&gt;diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c
index 4a55d9c..681bad9 100644
--- a/lustre/llite/llite_lib.c
+++ b/lustre/llite/llite_lib.c
@@ -693,7 +693,7 @@ void lustre_dump_dentry(struct dentry *dentry, int recur)
                 return;
 
        list_for_each(tmp, &amp;amp;dentry-&amp;gt;d_subdirs) {
-               struct dentry *d = list_entry(tmp, struct dentry, d_u.d_child);
+               struct dentry *d = list_entry(tmp, struct dentry, d_child);
                lustre_dump_dentry(d, recur - 1);
        }
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-none&quot;&gt;diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c
index 39cd6d5..b6a5d9c 100644
--- a/lustre/llite/namei.c
+++ b/lustre/llite/namei.c
@@ -178,14 +178,14 @@ static void ll_invalidate_negative_children(struct inode *dir)
        DECLARE_LL_D_HLIST_NODE_PTR(p);
 
        ll_lock_dcache(dir);
-       ll_d_hlist_for_each_entry(dentry, p, &amp;amp;dir-&amp;gt;i_dentry, d_alias) {
+       ll_d_hlist_for_each_entry(dentry, p, &amp;amp;dir-&amp;gt;i_dentry, d_u.d_alias) {
                spin_lock(&amp;amp;dentry-&amp;gt;d_lock);
                if (!list_empty(&amp;amp;dentry-&amp;gt;d_subdirs)) {
                        struct dentry *child;
 
                        list_for_each_entry_safe(child, tmp_subdir,
                                                 &amp;amp;dentry-&amp;gt;d_subdirs,
-                                                d_u.d_child) {
+                                                d_child) {
                                if (child-&amp;gt;d_inode == NULL)
                                        d_lustre_invalidate(child, 1);
                        }
@@ -376,7 +376,7 @@ static struct dentry *ll_find_alias(struct inode *inode, struct dentry *dentry)
        discon_alias = invalid_alias = NULL;
 
        ll_lock_dcache(inode);
-       ll_d_hlist_for_each_entry(alias, p, &amp;amp;inode-&amp;gt;i_dentry, d_alias) {
+       ll_d_hlist_for_each_entry(alias, p, &amp;amp;inode-&amp;gt;i_dentry, d_u.d_alias) {
                LASSERT(alias != dentry);
 
                spin_lock(&amp;amp;alias-&amp;gt;d_lock);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If there is a common interest, I can prepare a clean patch for this problem.&lt;/p&gt;

&lt;p&gt;Cheers&lt;br/&gt;
 Thomas&lt;/p&gt;</comment>
                            <comment id="112404" author="simmonsja" created="Mon, 20 Apr 2015 16:00:01 +0000"  >&lt;p&gt;To enable support for Ubuntu 14 you need the two patches posted here;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/14060&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14060&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/14507&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14507&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have tested the patches on Ubuntu 14 and on RHEL6.5. The autoconf had to be reworked since I found Lustre was compiling incorrectly thus I ended up with broken clients.&lt;/p&gt;

&lt;p&gt;This by default will over Debian Wheezy support as well.&lt;/p&gt;</comment>
                            <comment id="112405" author="bogl" created="Mon, 20 Apr 2015 16:01:14 +0000"  >&lt;p&gt;Thomas, there is already a fix in flight for the d_child problem.  Please see &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6428&quot; title=&quot;Lustre client Compilation failed build with kernel 3.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6428&quot;&gt;&lt;del&gt;LU-6426&lt;/del&gt;&lt;/a&gt;; &lt;a href=&quot;http://review.whamcloud.com/#/c/14060&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/14060&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="112406" author="thomas.stibor" created="Mon, 20 Apr 2015 16:06:18 +0000"  >&lt;p&gt;Ok, perfekt. I will try these patches on Wheezy + Lustre 2.5.3.90.&lt;br/&gt;
Many thanks, Thomas&lt;/p&gt;</comment>
                            <comment id="113357" author="simmonsja" created="Fri, 24 Apr 2015 21:07:47 +0000"  >&lt;p&gt;I updated to the patch to handle the debian Wheezy 3.2 kernels now. I have tested the latest patch on:&lt;/p&gt;

&lt;p&gt;RHEL6.5&lt;br/&gt;
RHEL7.1&lt;br/&gt;
debian Wheezy/Jesse running a 3.2 kernel&lt;br/&gt;
Ubuntu 14.04  -   linux-headers-3.11-32-generic&lt;br/&gt;
                            linux-headers-3.11-39-generic   (yes d_alias changed between each ubuntu kernel)&lt;br/&gt;
SLES11 SP3&lt;br/&gt;
Linux 4.0 kernel&lt;/p&gt;

&lt;p&gt;Each of those cases correctly compiled lustre.&lt;/p&gt;</comment>
                            <comment id="113973" author="gerrit" created="Fri, 1 May 2015 03:40:35 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14060/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14060/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6428&quot; title=&quot;Lustre client Compilation failed build with kernel 3.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6428&quot;&gt;&lt;del&gt;LU-6428&lt;/del&gt;&lt;/a&gt; llite: Add check of d_alias and d_child&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1a14c28cb1136f1f67fdb14e848b2d461b26f941&lt;/p&gt;</comment>
                            <comment id="113987" author="pjones" created="Fri, 1 May 2015 11:29:42 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                            <comment id="114727" author="gerrit" created="Fri, 8 May 2015 15:07:39 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14507/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14507/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6428&quot; title=&quot;Lustre client Compilation failed build with kernel 3.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6428&quot;&gt;&lt;del&gt;LU-6426&lt;/del&gt;&lt;/a&gt; lustre: remove EIOCBRETRY handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 617a53daff1768d88f694ae349214d5c6606d3cf&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28577">LU-6215</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzxa4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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>