<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:42:42 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-11302] schedule while atomic with lfsck code</title>
                <link>https://jira.whamcloud.com/browse/LU-11302</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
[ 2008.407262] BUG: sleeping function called from invalid context at kernel/rwsem.c:21
[ 2008.410052] in_atomic(): 1, irqs_disabled(): 0, pid: 11038, name: mdt_out00_002
[ 2008.412781] INFO: lockdep is turned off.
[ 2008.414459] CPU: 0 PID: 11038 Comm: mdt_out00_002 Tainted: G        W  OE  ------------   3.10.0-neo-7.4+ #0
[ 2008.417577] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
[ 2008.421118] Call Trace:
[ 2008.422546]  [&amp;lt;ffffffff816f4591&amp;gt;] dump_stack+0x19/0x1b
[ 2008.424525]  [&amp;lt;ffffffff810c91e9&amp;gt;] __might_sleep+0xe9/0x110
[ 2008.426546]  [&amp;lt;ffffffff816faa8a&amp;gt;] down_read+0x2a/0xb0
[ 2008.428465]  [&amp;lt;ffffffff810c8971&amp;gt;] ? finish_task_switch+0x81/0x1a0
[ 2008.431076]  [&amp;lt;ffffffffc10ac6cc&amp;gt;] ldiskfs_xattr_get+0x5c/0x2e0 [ldiskfs]
[ 2008.433385]  [&amp;lt;ffffffffc10cdeaa&amp;gt;] ldiskfs_xattr_trusted_get+0x2a/0x30 [ldiskfs]
[ 2008.435819]  [&amp;lt;ffffffff81248255&amp;gt;] generic_getxattr+0x55/0x80
[ 2008.438162]  [&amp;lt;ffffffffc115959d&amp;gt;] osd_xattr_get+0x18d/0x850 [osd_ldiskfs]
[ 2008.440646]  [&amp;lt;ffffffff816fe400&amp;gt;] ? _raw_spin_unlock+0x20/0x40
[ 2008.442850]  [&amp;lt;ffffffffc0fa9ff9&amp;gt;] lfsck_orphan_it_next+0x809/0xc90 [lfsck]
[ 2008.445289]  [&amp;lt;ffffffffc0faa4ee&amp;gt;] lfsck_orphan_it_load+0x6e/0x160 [lfsck]
[ 2008.447732]  [&amp;lt;ffffffffc0a0be18&amp;gt;] dt_index_walk+0xf8/0x450 [obdclass]
[ 2008.450000]  [&amp;lt;ffffffffc0a0c170&amp;gt;] ? dt_index_walk+0x450/0x450 [obdclass]
[ 2008.452239]  [&amp;lt;ffffffffc0a0ca24&amp;gt;] dt_index_read+0x444/0x6a0 [obdclass]
[ 2008.454439]  [&amp;lt;ffffffffc0cd30a2&amp;gt;] tgt_obd_idx_read+0x612/0x860 [ptlrpc]
[ 2008.456637]  [&amp;lt;ffffffffc0cd8ae0&amp;gt;] tgt_request_handle+0x940/0x13f0 [ptlrpc]
[ 2008.458861]  [&amp;lt;ffffffffc0c7abae&amp;gt;] ptlrpc_server_handle_request+0x26e/0xb10 [ptlrpc]
[ 2008.461267]  [&amp;lt;ffffffffc0c7ede3&amp;gt;] ptlrpc_main+0xad3/0x1fb0 [ptlrpc]
[ 2008.463506]  [&amp;lt;ffffffff810c8971&amp;gt;] ? finish_task_switch+0x81/0x1a0
[ 2008.465626]  [&amp;lt;ffffffffc0c7e310&amp;gt;] ? ptlrpc_register_service+0xec0/0xec0 [ptlrpc]
[ 2008.468064]  [&amp;lt;ffffffff810bacdf&amp;gt;] kthread+0xef/0x100
[ 2008.469795]  [&amp;lt;ffffffff810babf0&amp;gt;] ? kthread_create_on_node+0x140/0x140
[ 2008.471925]  [&amp;lt;ffffffff8170989d&amp;gt;] ret_from_fork+0x5d/0xb0
[ 2008.473791]  [&amp;lt;ffffffff810babf0&amp;gt;] ? kthread_create_on_node+0x140/0x140
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;bug caused a long aged bug when rb tree was locked while created and never unlocked until sleep functions called. &lt;/p&gt;

&lt;p&gt;77eea1985bb (Fan Yong           2014-02-12 17:21:32 +0800 6993)         /* read lock the rbtree when init, and unlock when fini */&lt;br/&gt;
77eea1985bb (Fan Yong           2014-02-12 17:21:32 +0800 6994)         read_lock(&amp;amp;llsd-&amp;gt;llsd_rb_lock);&lt;/p&gt;</description>
                <environment>RHEL 7.4 debug kernel</environment>
        <key id="53158">LU-11302</key>
            <summary>schedule while atomic with lfsck code</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Thu, 30 Aug 2018 08:34:04 +0000</created>
                <updated>Mon, 26 Nov 2018 05:12:09 +0000</updated>
                            <resolved>Mon, 26 Nov 2018 05:12:09 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="232794" author="shadow" created="Thu, 30 Aug 2018 09:02:12 +0000"  >&lt;p&gt;[ 2008.514110] CPU: 0 PID: 11038 Comm: mdt_out00_002 Tainted: G        W  OE  ------------   3.10.0-neo-7.4+ #0&lt;br/&gt;
[ 2008.517137] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015&lt;br/&gt;
[ 2008.520376] Call Trace:&lt;br/&gt;
[ 2008.521675]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816f4591&amp;gt;&amp;#93;&lt;/span&gt; dump_stack+0x19/0x1b&lt;br/&gt;
[ 2008.523622]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816ee328&amp;gt;&amp;#93;&lt;/span&gt; __schedule_bug+0x70/0x7f&lt;br/&gt;
[ 2008.525713]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816fba1e&amp;gt;&amp;#93;&lt;/span&gt; __schedule+0xa2e/0xab0&lt;br/&gt;
[ 2008.527837]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810cc996&amp;gt;&amp;#93;&lt;/span&gt; __cond_resched+0x26/0x30&lt;br/&gt;
[ 2008.530084]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816fbd9a&amp;gt;&amp;#93;&lt;/span&gt; _cond_resched+0x3a/0x50&lt;br/&gt;
[ 2008.532262]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816faa8f&amp;gt;&amp;#93;&lt;/span&gt; down_read+0x2f/0xb0&lt;br/&gt;
[ 2008.534240]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810c8971&amp;gt;&amp;#93;&lt;/span&gt; ? finish_task_switch+0x81/0x1a0&lt;br/&gt;
[ 2008.536354]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc10ac6cc&amp;gt;&amp;#93;&lt;/span&gt; ldiskfs_xattr_get+0x5c/0x2e0 &lt;span class=&quot;error&quot;&gt;&amp;#91;ldiskfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.538912]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc10cdeaa&amp;gt;&amp;#93;&lt;/span&gt; ldiskfs_xattr_trusted_get+0x2a/0x30 &lt;span class=&quot;error&quot;&gt;&amp;#91;ldiskfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.541490]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81248255&amp;gt;&amp;#93;&lt;/span&gt; generic_getxattr+0x55/0x80&lt;br/&gt;
[ 2008.543663]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc115959d&amp;gt;&amp;#93;&lt;/span&gt; osd_xattr_get+0x18d/0x850 &lt;span class=&quot;error&quot;&gt;&amp;#91;osd_ldiskfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.546086]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff816fe400&amp;gt;&amp;#93;&lt;/span&gt; ? _raw_spin_unlock+0x20/0x40&lt;br/&gt;
[ 2008.548173]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0fa9ff9&amp;gt;&amp;#93;&lt;/span&gt; lfsck_orphan_it_next+0x809/0xc90 &lt;span class=&quot;error&quot;&gt;&amp;#91;lfsck&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.550584]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0faa4ee&amp;gt;&amp;#93;&lt;/span&gt; lfsck_orphan_it_load+0x6e/0x160 &lt;span class=&quot;error&quot;&gt;&amp;#91;lfsck&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.552941]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0a0be18&amp;gt;&amp;#93;&lt;/span&gt; dt_index_walk+0xf8/0x450 &lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.555164]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0a0c170&amp;gt;&amp;#93;&lt;/span&gt; ? dt_index_walk+0x450/0x450 &lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.557501]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0a0ca24&amp;gt;&amp;#93;&lt;/span&gt; dt_index_read+0x444/0x6a0 &lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.559782]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0cd30a2&amp;gt;&amp;#93;&lt;/span&gt; tgt_obd_idx_read+0x612/0x860 &lt;span class=&quot;error&quot;&gt;&amp;#91;ptlrpc&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.562074]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0cd8ae0&amp;gt;&amp;#93;&lt;/span&gt; tgt_request_handle+0x940/0x13f0 &lt;span class=&quot;error&quot;&gt;&amp;#91;ptlrpc&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.564438]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0c7abae&amp;gt;&amp;#93;&lt;/span&gt; ptlrpc_server_handle_request+0x26e/0xb10 &lt;span class=&quot;error&quot;&gt;&amp;#91;ptlrpc&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.567074]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0c7ede3&amp;gt;&amp;#93;&lt;/span&gt; ptlrpc_main+0xad3/0x1fb0 &lt;span class=&quot;error&quot;&gt;&amp;#91;ptlrpc&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.569292]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810c8971&amp;gt;&amp;#93;&lt;/span&gt; ? finish_task_switch+0x81/0x1a0&lt;br/&gt;
[ 2008.571488]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffc0c7e310&amp;gt;&amp;#93;&lt;/span&gt; ? ptlrpc_register_service+0xec0/0xec0 &lt;span class=&quot;error&quot;&gt;&amp;#91;ptlrpc&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 2008.573957]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810bacdf&amp;gt;&amp;#93;&lt;/span&gt; kthread+0xef/0x100&lt;br/&gt;
[ 2008.575825]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810babf0&amp;gt;&amp;#93;&lt;/span&gt; ? kthread_create_on_node+0x140/0x140&lt;br/&gt;
[ 2008.578150]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff8170989d&amp;gt;&amp;#93;&lt;/span&gt; ret_from_fork+0x5d/0xb0&lt;br/&gt;
[ 2008.580230]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810babf0&amp;gt;&amp;#93;&lt;/span&gt; ? kthread_create_on_node+0x140/0x140&lt;/p&gt;

&lt;p&gt;etc...&lt;/p&gt;</comment>
                            <comment id="233423" author="adilger" created="Wed, 12 Sep 2018 21:08:51 +0000"  >&lt;p&gt;It looks like replacing &lt;tt&gt;rwlock_t llsd_rb_lock&lt;/tt&gt; with &lt;tt&gt;rw_semaphore llsd_rb_sem&lt;/tt&gt; and changing the users would fix this problem.&lt;/p&gt;</comment>
                            <comment id="237432" author="adilger" created="Mon, 26 Nov 2018 05:12:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11620&quot; title=&quot;BUG: sleeping function called from invalid context at mm/slub.c:940&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11620&quot;&gt;&lt;del&gt;LU-11620&lt;/del&gt;&lt;/a&gt; has a patch&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="53923">LU-11620</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="19005">LU-3336</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|i001hb:</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>