<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:45:08 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-11582] LBUG: ASSERTION( inode-&gt;i_data.nrpages == 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-11582</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
 We have a type of job that keeps crashing Lustre client version 2.10.5 with the following trace. It is very likely this job has files open on Oak (Lustre 2.10.4). This looks like old tickets &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1414&quot; title=&quot;ll_delete_inode() LBUG&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1414&quot;&gt;&lt;del&gt;LU-1414&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-118&quot; title=&quot;clear_inode: BUG_ON(inode-&amp;gt;i_data.nrpages)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-118&quot;&gt;&lt;del&gt;LU-118&lt;/del&gt;&lt;/a&gt;... fixed in Lustre 1.8! The issue happens on a bigmem node (1.5TB of RAM), and doesn&apos;t seem to happen on node with less memory. I&apos;ll try to upload a crash dump file to your ftp.&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;[11497.465606] LustreError: 132407:0:(llite_lib.c:2047:ll_delete_inode()) ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed: inode=[0x200018e83:0x1ba2c:0x0](ffff8aa85a298510) nrpages=1, see LU-118
[11497.487939] LustreError: 132407:0:(llite_lib.c:2047:ll_delete_inode()) LBUG
[11497.495730] Pid: 132407, comm: spades 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018
[11497.505939] Call Trace:
[11497.508685]  [&amp;lt;ffffffffc09947cc&amp;gt;] libcfs_call_trace+0x8c/0xc0 [libcfs]
[11497.516009]  [&amp;lt;ffffffffc099487c&amp;gt;] lbug_with_loc+0x4c/0xa0 [libcfs]
[11497.522955]  [&amp;lt;ffffffffc0f25c87&amp;gt;] ll_delete_inode+0x1b7/0x1c0 [lustre]
[11497.530291]  [&amp;lt;ffffffff8d43c504&amp;gt;] evict+0xb4/0x180
[11497.535663]  [&amp;lt;ffffffff8d43ce0c&amp;gt;] iput+0xfc/0x190
[11497.540940]  [&amp;lt;ffffffff8d43126e&amp;gt;] do_unlinkat+0x1ae/0x2d0
[11497.546990]  [&amp;lt;ffffffff8d432326&amp;gt;] SyS_unlink+0x16/0x20
[11497.552753]  [&amp;lt;ffffffff8d92579b&amp;gt;] system_call_fastpath+0x22/0x27
[11497.559484]  [&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
[11497.565069] Kernel panic - not syncing: LBUG
[11497.569837] CPU: 7 PID: 132407 Comm: spades Kdump: loaded Tainted: G           OE  ------------   3.10.0-862.14.4.el7.x86_64 #1
[11497.582928] Hardware name: Dell Inc. PowerEdge R630/02C2CP, BIOS 2.8.0 005/17/2018
[11497.591379] Call Trace:
[11497.594105]  [&amp;lt;ffffffff8d913754&amp;gt;] dump_stack+0x19/0x1b
[11497.599845]  [&amp;lt;ffffffff8d90d29f&amp;gt;] panic+0xe8/0x21f
[11497.605211]  [&amp;lt;ffffffffc09948cb&amp;gt;] lbug_with_loc+0x9b/0xa0 [libcfs]
[11497.612131]  [&amp;lt;ffffffffc0f25c87&amp;gt;] ll_delete_inode+0x1b7/0x1c0 [lustre]
[11497.619421]  [&amp;lt;ffffffff8d43c504&amp;gt;] evict+0xb4/0x180
[11497.624775]  [&amp;lt;ffffffff8d43ce0c&amp;gt;] iput+0xfc/0x190
[11497.630033]  [&amp;lt;ffffffff8d43126e&amp;gt;] do_unlinkat+0x1ae/0x2d0
[11497.636064]  [&amp;lt;ffffffff8d42175e&amp;gt;] ? ____fput+0xe/0x10
[11497.641709]  [&amp;lt;ffffffff8d2bab90&amp;gt;] ? task_work_run+0xc0/0xe0
[11497.647935]  [&amp;lt;ffffffff8d432326&amp;gt;] SyS_unlink+0x16/0x20
[11497.653679]  [&amp;lt;ffffffff8d92579b&amp;gt;] system_call_fastpath+0x22/0x27
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
 Stephane&lt;/p&gt;</description>
                <environment>Client: CentOS 7.5 Lustre 2.10.5&lt;br/&gt;
Server (Oak) CentOS 7.4 Lustre 2.10.4</environment>
        <key id="53848">LU-11582</key>
            <summary>LBUG: ASSERTION( inode-&gt;i_data.nrpages == 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="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="sthiell">Stephane Thiell</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Oct 2018 21:17:22 +0000</created>
                <updated>Tue, 5 Nov 2019 05:38:27 +0000</updated>
                            <resolved>Tue, 27 Nov 2018 05:10:55 +0000</resolved>
                                    <version>Lustre 2.10.5</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="235840" author="sthiell" created="Mon, 29 Oct 2018 21:38:10 +0000"  >&lt;p&gt;vmcore uploaded to your ftp server, the file is&#160;vmcore-sh-112-03-2018-10-26-22-17-26_&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11582&quot; title=&quot;LBUG: ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11582&quot;&gt;&lt;del&gt;LU-11582&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;kernel used is CentOS 7 3.10.0-862.14.4.el7.x86_64 ( &lt;a href=&quot;http://debuginfo.centos.org/7/x86_64/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://debuginfo.centos.org/7/x86_64/&lt;/a&gt;&#160;)&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="235849" author="pjones" created="Tue, 30 Oct 2018 00:02:48 +0000"  >&lt;p&gt;Bobijam&lt;/p&gt;

&lt;p&gt;Could you please advise?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="236814" author="bobijam" created="Sun, 11 Nov 2018 07:38:06 +0000"  >&lt;p&gt;I think the assertion is reading the nrpages without supposed being protected under mapping-&amp;gt;tree_lock, and truncate_inode_pages() is traverse the mapping&apos;s radix tree without tree_lock, and could miss finding the page being removed from the radix in __remove_mapping()&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;truncate_inode_pages_final()&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
        nrpages = mapping-&amp;gt;nrpages;
        smp_rmb();
        nrexceptional = mapping-&amp;gt;nrexceptional;

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (nrpages || nrexceptional) {
                /*
                 * As truncation uses a lockless tree lookup, cycle
                 * the tree lock to make sure any ongoing tree
                 * modification that does not see AS_EXITING is
                 * completed before starting the &lt;span class=&quot;code-keyword&quot;&gt;final&lt;/span&gt; truncate.
                 */
                spin_lock_irq(&amp;amp;mapping-&amp;gt;tree_lock);
                spin_unlock_irq(&amp;amp;mapping-&amp;gt;tree_lock);
                &lt;span class=&quot;code-comment&quot;&gt;// race window, that __remove_mapping() removes the page from the radix,
&lt;/span&gt;                &lt;span class=&quot;code-comment&quot;&gt;// but nrpages hasn&apos;t been decreased yet.
&lt;/span&gt;                truncate_inode_pages(mapping, 0);
        }       
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And I think our truncate_inode_pages_final() in lustre/include/lustre_compat.h made the right sequence call&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-java&quot;&gt;
#ifndef HAVE_TRUNCATE_INODE_PAGES_FINAL
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; inline void truncate_inode_pages_final(struct address_space *map)
{       
        truncate_inode_pages(map, 0);
                &lt;span class=&quot;code-comment&quot;&gt;/* Workaround &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; LU-118 */&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (map-&amp;gt;nrpages) {
                spin_lock_irq(&amp;amp;map-&amp;gt;tree_lock);              &lt;span class=&quot;code-comment&quot;&gt;// after get the tree_lock, we avoid the race
&lt;/span&gt;                spin_unlock_irq(&amp;amp;map-&amp;gt;tree_lock);
        }       &lt;span class=&quot;code-comment&quot;&gt;/* Workaround end */&lt;/span&gt;
}
#endif  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I think the fix could be add a tree_lock for checking the nrpages in ll_delete_inode, or just delete this assertion.&lt;/p&gt;</comment>
                            <comment id="236816" author="gerrit" created="Sun, 11 Nov 2018 08:54:17 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33639&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33639&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11582&quot; title=&quot;LBUG: ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11582&quot;&gt;&lt;del&gt;LU-11582&lt;/del&gt;&lt;/a&gt; llite: protect reading inode-&amp;gt;i_data.nrpages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c9fb1cae878d4c3df24173e8b3c6b436fe983533&lt;/p&gt;</comment>
                            <comment id="237158" author="gerrit" created="Sun, 18 Nov 2018 11:24:13 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33681&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33681&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11582&quot; title=&quot;LBUG: ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11582&quot;&gt;&lt;del&gt;LU-11582&lt;/del&gt;&lt;/a&gt; llite: protect reading inode-&amp;gt;i_data.nrpages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 35396125e071ad1457257348be38721bc9ffdad5&lt;/p&gt;</comment>
                            <comment id="237498" author="gerrit" created="Tue, 27 Nov 2018 04:56:37 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33639/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33639/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11582&quot; title=&quot;LBUG: ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11582&quot;&gt;&lt;del&gt;LU-11582&lt;/del&gt;&lt;/a&gt; llite: protect reading inode-&amp;gt;i_data.nrpages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 04c172b686763be0d42eb4c36532d5795166eb7c&lt;/p&gt;</comment>
                            <comment id="237507" author="pjones" created="Tue, 27 Nov 2018 05:10:55 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="239426" author="gerrit" created="Sat, 5 Jan 2019 06:51:58 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33681/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33681/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11582&quot; title=&quot;LBUG: ASSERTION( inode-&amp;gt;i_data.nrpages == 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11582&quot;&gt;&lt;del&gt;LU-11582&lt;/del&gt;&lt;/a&gt; llite: protect reading inode-&amp;gt;i_data.nrpages&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d936fdca9e00e05cecd4b21c6e4bbbf7107dc9b4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="10428">LU-118</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|i005av:</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>