<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:42:01 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-11223] Changed resource in completion ast</title>
                <link>https://jira.whamcloud.com/browse/LU-11223</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hit this in master next, but serching crash history reveals this was also hit in April and May. Current high suspect is lock conversion code.&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;[10408.160302] Lustre: DEBUG MARKER: == sanityn test 90: open/create and unlink striped directory ========================================= 14:47:16 (1533581236)
[10463.288146] rm (14401) used greatest stack depth: 10120 bytes left
[10489.045922] LustreError: 2355:0:(ldlm_lockd.c:1799:ldlm_handle_cp_callback()) change resource!
[10489.051802] LustreError: 2355:0:(ldlm_lock.c:1056:ldlm_granted_list_add_lock()) ASSERTION( list_empty(&amp;amp;lock-&amp;gt;l_res_link) ) failed: 
[10489.054140] LustreError: 2355:0:(ldlm_lock.c:1056:ldlm_granted_list_add_lock()) LBUG
[10489.055686] CPU: 15 PID: 2355 Comm: ldlm_cb07_001 Kdump: loaded Tainted: P        W  OE  ------------   3.10.0-7.5-debug #1
[10489.057781] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[10489.058791] Call Trace:
[10489.059667]  [&amp;lt;ffffffff8176fc9a&amp;gt;] dump_stack+0x19/0x1b
[10489.060709]  [&amp;lt;ffffffffa020f7c2&amp;gt;] libcfs_call_trace+0x72/0x80 [libcfs]
[10489.061590]  [&amp;lt;ffffffffa020f84c&amp;gt;] lbug_with_loc+0x4c/0xb0 [libcfs]
[10489.062666]  [&amp;lt;ffffffffa070c8f9&amp;gt;] ldlm_grant_lock_with_skiplist+0x6b9/0x760 [ptlrpc]
[10489.065043]  [&amp;lt;ffffffffa070ca88&amp;gt;] ldlm_grant_lock+0xe8/0x270 [ptlrpc]
[10489.072174]  [&amp;lt;ffffffffa07324c1&amp;gt;] ldlm_handle_cp_callback+0x281/0xb70 [ptlrpc]
[10489.074293]  [&amp;lt;ffffffffa073a69e&amp;gt;] ldlm_callback_handler.part.27+0x154e/0x1de0 [ptlrpc]
[10489.075988]  [&amp;lt;ffffffffa0215f97&amp;gt;] ? libcfs_debug_msg+0x57/0x80 [libcfs]
[10489.078543]  [&amp;lt;ffffffffa073af67&amp;gt;] ldlm_callback_handler+0x37/0xd0 [ptlrpc]
[10489.079906]  [&amp;lt;ffffffffa0767ec6&amp;gt;] ptlrpc_server_handle_request+0x256/0xad0 [ptlrpc]
[10489.084875]  [&amp;lt;ffffffff810b9398&amp;gt;] ? __wake_up_common+0x58/0x90
[10489.086238]  [&amp;lt;ffffffff813ccd2b&amp;gt;] ? do_raw_spin_unlock+0x4b/0x90
[10489.087514]  [&amp;lt;ffffffffa076bcbe&amp;gt;] ptlrpc_main+0xabe/0x1f80 [ptlrpc]
[10489.090181]  [&amp;lt;ffffffffa076b200&amp;gt;] ? ptlrpc_register_service+0xeb0/0xeb0 [ptlrpc]
[10489.091872]  [&amp;lt;ffffffff810ae864&amp;gt;] kthread+0xe4/0xf0
[10489.092674]  [&amp;lt;ffffffff810ae780&amp;gt;] ? kthread_create_on_node+0x140/0x140
[10489.093572]  [&amp;lt;ffffffff81783777&amp;gt;] ret_from_fork_nospec_begin+0x21/0x21
[10489.094415]  [&amp;lt;ffffffff810ae780&amp;gt;] ? kthread_create_on_node+0x140/0x140
[10489.095692] Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Checking the crash logs we can see that it appears to be a race between completion ast and grant from cli enqueue both of which are doing a resource change (so there should be no cp ast as we ar eobviously performing an intent request):&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;00010000:00010000:15.0:1533581317.463955:0:2355:0:(ldlm_lockd.c:1729:ldlm_handle_cp_callback()) ### client completion callback handler START ns: lustre-MDT0000-mdc-ffff8802672ed800 lock: ffff880066b22d80/0x3366c6fd8fb32490 lrc: 5/1,0 mode: --/CR res: [0x200000007:0x1:0x0].0x0 bits 0x1/0x0 rrc: 3 type: IBT flags: 0x0 nid: local remote: 0x0 expref: -99 pid: 15684 timeout: 0 lvb_type: 0
00010000:00010000:13.0:1533581317.463959:0:11560:0:(ldlm_lock.c:748:ldlm_lock_addref_internal_nolock()) ### ldlm_lock_addref(CR) ns: ?? lock: ffff8801fe1c7d80/0x3366c6fd8fb324cf lrc: 3/1,0 mode: --/CR res: ?? rrc=?? type: ??? flags: 0x10000000000000 nid: local remote: 0x0 expref: -99 pid: 11560 timeout: 0 lvb_type: 0
00010000:00010000:13.0:1533581317.463962:0:11560:0:(ldlm_request.c:942:ldlm_cli_enqueue()) ### client-side enqueue START, flags 0x1000 ns: lustre-MDT0000-mdc-ffff8802e1767800 lock: ffff8801fe1c7d80/0x3366c6fd8fb324cf lrc: 3/1,0 mode: --/CR res: [0x200000007:0x1:0x0].0x0 bits 0x2/0x0 rrc: 3 type: IBT flags: 0x0 nid: local remote: 0x0 expref: -99 pid: 11560 timeout: 0 lvb_type: 0
00010000:00010000:15.0:1533581317.463962:0:2355:0:(ldlm_lockd.c:1776:ldlm_handle_cp_callback()) ### completion AST, new lock mode ns: ?? lock: ffff880066b22d80/0x3366c6fd8fb32490 lrc: 5/1,0 mode: --/PR res: ?? rrc=?? type: ??? flags: 0x10000000000000 nid: local remote: 0x0 expref: -99 pid: 15684 timeout: 0 lvb_type: 0
00010000:00010000:15.0:1533581317.463965:0:2355:0:(ldlm_lockd.c:1784:ldlm_handle_cp_callback()) ### completion AST, new policy data ns: ?? lock: ffff880066b22d80/0x3366c6fd8fb32490 lrc: 5/1,0 mode: --/PR res: ?? rrc=?? type: ??? flags: 0x10000000000000 nid: local remote: 0x0 expref: -99 pid: 15684 timeout: 0 lvb_type: 0
00010000:00010000:13.0:1533581317.463967:0:11560:0:(ldlm_request.c:1014:ldlm_cli_enqueue()) ### sending request ns: lustre-MDT0000-mdc-ffff8802e1767800 lock: ffff8801fe1c7d80/0x3366c6fd8fb324cf lrc: 3/1,0 mode: --/CR res: [0x200000007:0x1:0x0].0x0 bits 0x2/0x0 rrc: 3 type: IBT flags: 0x0 nid: local remote: 0x0 expref: -99 pid: 11560 timeout: 0 lvb_type: 0
00010000:00010000:15.0:1533581317.463974:0:2355:0:(ldlm_lockd.c:1798:ldlm_handle_cp_callback()) ### completion AST, new resource ns: lustre-MDT0000-mdc-ffff8802672ed800 lock: ffff880066b22d80/0x3366c6fd8fb32490 lrc: 5/1,0 mode: --/PR res: [0x240000403:0xc6d:0x0].0x0 bits 0x1/0x0 rrc: 2 type: IBT flags: 0x0 nid: local remote: 0x0 expref: -99 pid: 15684 timeout: 0 lvb_type: 0
00000100:00100000:13.0:1533581317.463975:0:11560:0:(client.c:1625:ptlrpc_send_new_req()) Sending RPC pname:cluuid:pid:xid:nid:opc bash:67cbe2ec-b14d-235a-d5d5-d57298cdcb90:11560:1608073853012208:0@lo:101
00010000:00020000:15.0:1533581317.463977:0:2355:0:(ldlm_lockd.c:1799:ldlm_handle_cp_callback()) change resource!
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="52916">LU-11223</key>
            <summary>Changed resource in completion ast</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="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2018 19:53:52 +0000</created>
                <updated>Fri, 21 Jan 2022 02:28:56 +0000</updated>
                            <resolved>Fri, 21 Jan 2022 02:28:56 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="231544" author="green" created="Mon, 6 Aug 2018 19:58:39 +0000"  >&lt;p&gt;Hm, Mikefound that this is apparently a duplicate of (now closed) &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8391&quot; title=&quot;ASSERTION( list_empty(&amp;amp;lock-&amp;gt;l_res_link) )&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8391&quot;&gt;&lt;del&gt;LU-8391&lt;/del&gt;&lt;/a&gt; except the patch did not land.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="38130">LU-8391</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|i000dz:</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>