<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:06:55 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-14110] Race during several client mount instances (--&gt; rmmod lustre hang)</title>
                <link>https://jira.whamcloud.com/browse/LU-14110</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I create this ticket to follow the issue seen by @&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=apercher&quot; class=&quot;user-hover&quot; rel=&quot;apercher&quot;&gt;apercher&lt;/a&gt;&#160; (cf. &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8346&quot; title=&quot;conf-sanity test_93: test failed to respond and timed out&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8346&quot;&gt;&lt;del&gt;LU-8346&lt;/del&gt;&lt;/a&gt;&apos;s comment).&lt;/p&gt;

&lt;p&gt;Here are the commands/configs to reproduce the issue:&lt;/p&gt;

&lt;p&gt;fstab:&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;
&amp;lt;serv1@ib1&amp;gt;:&amp;lt;serv2@ib1&amp;gt;:/fs1 /mnt/fs1 lustre defaults,_netdev,noauto,x-systemd.requires=lnet.service,flock,user_xattr,nosuid 0 0
&amp;lt;serv1@ib1&amp;gt;:&amp;lt;serv2@ib1&amp;gt;:/fs1/home /mnt/home lustre defaults,_netdev,noauto,x-systemd.requires=lnet.service,flock,user_xattr,nosuid 0 0&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;commands:&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;
&lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;; &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
 mount /mnt/home &amp;amp; mount /mnt/fs1
 umount /mnt/home
 umount /mnt/fs1
 lustre_rmmod
done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;After some iterations &quot;rmmod lustre&quot; will hang in &quot;lu_context_key_degister&quot;&lt;/p&gt;

&lt;p&gt;dmesg (master branch):&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;
 [ 1560.484463] INFO: task rmmod:6430 blocked &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; more than 120 seconds.
 [ 1560.484480] &lt;span class=&quot;code-quote&quot;&gt;&quot;echo 0 &amp;gt; /proc/sys/kernel/hung_task_timeout_secs&quot;&lt;/span&gt; disables &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; message.
 [ 1560.484496] rmmod D ffff9ddbdfd9acc0 0 6430 6396 0x00000080
 [ 1560.484499] Call Trace:
 [ 1560.484504] [&amp;lt;ffffffff8b0266d2&amp;gt;] ? kmem_cache_free+0x1e2/0x200
 [ 1560.484508] [&amp;lt;ffffffff8b585da9&amp;gt;] schedule+0x29/0x70
 [ 1560.484531] [&amp;lt;ffffffffc0a0284d&amp;gt;] lu_context_key_degister+0xcd/0x150 [obdclass]
 [ 1560.484534] [&amp;lt;ffffffff8aec7880&amp;gt;] ? wake_bit_function_rh+0x40/0x40
 [ 1560.484548] [&amp;lt;ffffffffc0a02a72&amp;gt;] lu_context_key_degister_many+0x72/0xb0 [obdclass]
 [ 1560.484550] [&amp;lt;ffffffff8b0266d2&amp;gt;] ? kmem_cache_free+0x1e2/0x200
 [ 1560.484564] [&amp;lt;ffffffffc0d67347&amp;gt;] vvp_type_fini+0x27/0x30 [lustre]
 [ 1560.484577] [&amp;lt;ffffffffc09fc01b&amp;gt;] lu_device_type_fini+0x1b/0x20 [obdclass]
 [ 1560.484586] [&amp;lt;ffffffffc0d68d75&amp;gt;] vvp_global_fini+0x15/0x30 [lustre]
 [ 1560.484596] [&amp;lt;ffffffffc0d7beb4&amp;gt;] lustre_exit+0x31/0x17d [lustre]
 [ 1560.484599] [&amp;lt;ffffffff8af1c46e&amp;gt;] SyS_delete_module+0x19e/0x310
 [ 1560.484601] [&amp;lt;ffffffff8b592e09&amp;gt;] ? system_call_after_swapgs+0x96/0x13a
 [ 1560.484603] [&amp;lt;ffffffff8b592e15&amp;gt;] ? system_call_after_swapgs+0xa2/0x13a
 [ 1560.484604] [&amp;lt;ffffffff8b592e09&amp;gt;] ? system_call_after_swapgs+0x96/0x13a
 [ 1560.484606] [&amp;lt;ffffffff8b592e15&amp;gt;] ? system_call_after_swapgs+0xa2/0x13a
 [ 1560.484607] [&amp;lt;ffffffff8b592e09&amp;gt;] ? system_call_after_swapgs+0x96/0x13a
 [ 1560.484609] [&amp;lt;ffffffff8b592ed2&amp;gt;] system_call_fastpath+0x25/0x2a
 [ 1560.484611] [&amp;lt;ffffffff8b592e15&amp;gt;] ? system_call_after_swapgs+0xa2/0x13a&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;crash backtrace (master branch):&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;
crash&amp;gt; bt -F 6430
PID: 6430   TASK: ffff9ddbd5c0c1c0  CPU: 3   COMMAND: &lt;span class=&quot;code-quote&quot;&gt;&quot;rmmod&quot;&lt;/span&gt;
 #0 [ffff9ddbd5d2bd18] __schedule at ffffffff8b5858fa
    ffff9ddbd5d2bd20: 0000000000000082 ffff9ddbd5d2bfd8
    ffff9ddbd5d2bd30: ffff9ddbd5d2bfd8 ffff9ddbd5d2bfd8
    ffff9ddbd5d2bd40: 000000000001acc0 [task_struct]
    ffff9ddbd5d2bd50: kmem_cache_free+482 [dm_rq_target_io]
    ffff9ddbd5d2bd60: 0000000000000000 00000000a8325962
    ffff9ddbd5d2bd70: 0000000000000246 ll_thread_key
    ffff9ddbd5d2bd80: bit_wait_table+2664 ffff9ddbd5d2bdd8
    ffff9ddbd5d2bd90: 0000000000000000 0000000000000000
    ffff9ddbd5d2bda0: ffff9ddbd5d2bdb0 schedule+41
 #1 [ffff9ddbd5d2bda8] schedule at ffffffff8b585da9
    ffff9ddbd5d2bdb0: ffff9ddbd5d2be20 lu_context_key_degister+205
 #2 [ffff9ddbd5d2bdb8] lu_context_key_degister at ffffffffc0a0284d [obdclass]
    ffff9ddbd5d2bdc0: ll_thread_key+36 00000000ffffffff
    ffff9ddbd5d2bdd0: 0000000000000000 0000000000000000
    ffff9ddbd5d2bde0: [task_struct]    var_wake_function
    ffff9ddbd5d2bdf0: bit_wait_table+2672 bit_wait_table+2672
    ffff9ddbd5d2be00: 00000000a8325962 fffffffffffffff5
    ffff9ddbd5d2be10: __this_module    0000000000000800
    ffff9ddbd5d2be20: ffff9ddbd5d2be80 lu_context_key_degister_many+114
 #3 [ffff9ddbd5d2be28] lu_context_key_degister_many at ffffffffc0a02a72 [obdclass]
    ffff9ddbd5d2be30: ffff9ddb00000008 ffff9ddbd5d2be90
    ffff9ddbd5d2be40: ffff9ddbd5d2be50 00000000a8325962
    ffff9ddbd5d2be50: kmem_cache_free+482 vvp_session_key
    ffff9ddbd5d2be60: vvp_thread_key   0000000000000000
crash&amp;gt; sym ll_thread_key
ffffffffc0da4a00 (D) ll_thread_key [lustre]
crash&amp;gt; struct lu_context_key ll_thread_key
struct lu_context_key {
  lct_tags = 1073741832,
  lct_init = 0xffffffffc0d67d20 &amp;lt;ll_thread_key_init&amp;gt;,
  lct_fini = 0xffffffffc0d67e30 &amp;lt;ll_thread_key_fini&amp;gt;,
  lct_exit = 0x0,
  lct_index = 14,
  lct_used = {
    counter = 1
  },
  lct_owner = 0xffffffffc0da8b80 &amp;lt;__this_module&amp;gt;,
  lct_reference = {&amp;lt;No data fields&amp;gt;}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The issue seems to be more recurrent on b2_12 branch.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>VMs with Lustre 2.12.5/master on ldiskfs</environment>
        <key id="61498">LU-14110</key>
            <summary>Race during several client mount instances (--&gt; rmmod lustre hang)</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="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                            <label>obdclass</label>
                    </labels>
                <created>Tue, 3 Nov 2020 10:18:17 +0000</created>
                <updated>Tue, 26 Apr 2022 08:28:49 +0000</updated>
                            <resolved>Mon, 22 Mar 2021 18:32:11 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.5</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="284489" author="gerrit" created="Fri, 6 Nov 2020 15:34:08 +0000"  >&lt;p&gt;Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40561&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40561&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14110&quot; title=&quot;Race during several client mount instances (--&amp;gt; rmmod lustre hang)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14110&quot;&gt;&lt;del&gt;LU-14110&lt;/del&gt;&lt;/a&gt; obdclass: Protect keys_fill instances&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1697925b59996bc88690eb57270a443d0ea44214&lt;/p&gt;</comment>
                            <comment id="284543" author="gerrit" created="Fri, 6 Nov 2020 20:13:05 +0000"  >&lt;p&gt;Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40565&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40565&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14110&quot; title=&quot;Race during several client mount instances (--&amp;gt; rmmod lustre hang)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14110&quot;&gt;&lt;del&gt;LU-14110&lt;/del&gt;&lt;/a&gt; obdclass: Protect keys_fill instances&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d3999d5c2ea32593623df6c7dc7313646dcc5cbe&lt;/p&gt;</comment>
                            <comment id="295681" author="gerrit" created="Mon, 22 Mar 2021 16:25:52 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40565/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40565/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14110&quot; title=&quot;Race during several client mount instances (--&amp;gt; rmmod lustre hang)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14110&quot;&gt;&lt;del&gt;LU-14110&lt;/del&gt;&lt;/a&gt; obdclass: Protect cl_env_percpu[]&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 881551fbb7335694b89a877072bcda0aeaf8705c&lt;/p&gt;</comment>
                            <comment id="295716" author="pjones" created="Mon, 22 Mar 2021 18:32:11 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="63475">LU-14547</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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>client</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i01e4n:</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>