<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:48 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-6053] Review #12531 (LU-4604) failed to compile in lustre 2.4.3</title>
                <link>https://jira.whamcloud.com/browse/LU-6053</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;One of our sles11sp3 production clients panicked with signature of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4445&quot; title=&quot;lu_object.c:1199:lu_device_fini()) ASSERTION( t-&amp;gt;ldt_device_nr &amp;gt; 0 )&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4445&quot;&gt;&lt;del&gt;LU-4445&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4445&quot; title=&quot;lu_object.c:1199:lu_device_fini()) ASSERTION( t-&amp;gt;ldt_device_nr &amp;gt; 0 )&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4445&quot;&gt;&lt;del&gt;LU-4445&lt;/del&gt;&lt;/a&gt; was merged to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4604&quot; title=&quot;improve LFSCK async RPCs control&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4604&quot;&gt;&lt;del&gt;LU-4604&lt;/del&gt;&lt;/a&gt;. The patch of master branch (#8694) was ported to b2_5 (#12531).&lt;/p&gt;

&lt;p&gt;The patch of #12531 was cherry-picked into our nas-2.4.3 branch cleanly. However, compilation failed:&lt;/p&gt;

&lt;p&gt;=== start quote ====&lt;br/&gt;
...&lt;br/&gt;
Making all in posix&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt;: Entering directory `/usr/src/packages/BUILD/lustre-2.4.3/libcfs/libcfs&apos;&lt;br/&gt;
In file included from /usr/src/packages/BUILD/lustre-2.4.3/lustre/include/lustre_net.h:77,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/lustre/include/lustre_lib.h:70,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/lustre/include/liblustre.h:503,&lt;br/&gt;
                 from fail.c:38:&lt;br/&gt;
/usr/src/packages/BUILD/lustre-2.4.3/lustre/include/lu_object.h:336: error: expected specifier-qualifier-list before &apos;atomic_t&apos;&lt;br/&gt;
=== end quote ===&lt;/p&gt;

&lt;p&gt;The libcfs/libcfs/fail.c determines which header files to include here:&lt;br/&gt;
#ifndef _&lt;em&gt;KERNEL&lt;/em&gt;_&lt;br/&gt;
#include &amp;lt;liblustre.h&amp;gt;&lt;br/&gt;
#else&lt;br/&gt;
#include &amp;lt;libcfs/libcfs.h&amp;gt;&lt;br/&gt;
#endif&lt;/p&gt;

&lt;p&gt;Since &amp;lt;liblustre.h&amp;gt; was included, apparently _&lt;em&gt;KERNEL&lt;/em&gt;_ was not defined. However, type &apos;atomic_t&apos; is defined in &amp;lt;linux/types.h&amp;gt; only if _&lt;em&gt;KERNEL&lt;/em&gt;_ defined.&lt;/p&gt;

&lt;p&gt;I do not know what changes were made in b2_5 to make it able to compile, it failed to compile in my 2.4.3 environment.&lt;/p&gt;</description>
                <environment>The git tree is at &lt;a href=&quot;https://github.com/jlan/lustre-nas&quot;&gt;https://github.com/jlan/lustre-nas&lt;/a&gt;&lt;br/&gt;
Server: centos 6.4 running 2.4.3 (tag: 2.4.3-8nasS)&lt;br/&gt;
Client: sles11sp3 running 2.4.3 (tag: 2.4.3-11nasC)&lt;br/&gt;
</environment>
        <key id="27981">LU-6053</key>
            <summary>Review #12531 (LU-4604) failed to compile in lustre 2.4.3</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="yong.fan">nasf</assignee>
                                    <reporter username="jaylan">Jay Lan</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Dec 2014 01:59:59 +0000</created>
                <updated>Mon, 5 Jan 2015 18:32:44 +0000</updated>
                            <resolved>Mon, 5 Jan 2015 18:32:44 +0000</resolved>
                                    <version>Lustre 2.4.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="102029" author="pjones" created="Fri, 19 Dec 2014 05:18:47 +0000"  >&lt;p&gt;Fan Yong&lt;/p&gt;

&lt;p&gt;Could you please advise about this backport?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="102030" author="yong.fan" created="Fri, 19 Dec 2014 05:50:39 +0000"  >&lt;p&gt;On lustre-2.4.3, please rename the &quot;atomic_t&quot; as &quot;cfs_atomic_t&quot;.&lt;/p&gt;</comment>
                            <comment id="102280" author="yong.fan" created="Wed, 24 Dec 2014 04:09:39 +0000"  >&lt;blockquote&gt;
&lt;p&gt;On lustre-2.4.3, please rename the &quot;atomic_t&quot; as &quot;cfs_atomic_t&quot;.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Any feedback for that?&lt;/p&gt;</comment>
                            <comment id="102552" author="jaylan" created="Mon, 5 Jan 2015 18:27:08 +0000"  >&lt;p&gt;Yep, that worked.&lt;/p&gt;</comment>
                            <comment id="102553" author="jaylan" created="Mon, 5 Jan 2015 18:28:08 +0000"  >&lt;p&gt;If you do not plan to release another 2.4 update release, you may close this ticket.&lt;/p&gt;</comment>
                            <comment id="102557" author="pjones" created="Mon, 5 Jan 2015 18:32:44 +0000"  >&lt;p&gt;Thanks Jay! We have no plans to release a 2.4.x release at present so I&apos;ll close this as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4604&quot; title=&quot;improve LFSCK async RPCs control&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4604&quot;&gt;&lt;del&gt;LU-4604&lt;/del&gt;&lt;/a&gt; for now&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="22644">LU-4445</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|hzx2vb:</customfieldvalue>

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