<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:41:40 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-4320] MDS_SWAP_LAYOUTS handler does not handle ELC locks from client</title>
                <link>https://jira.whamcloud.com/browse/LU-4320</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It appears that the MDS_SWAP_LAYOUTS handler (mdt_swap_layouts()) does not handle Early Lock Cancellation (ELC) locks that are packed into the RPC by the client calling mdc_prep_elc_req() in mdc_ioc_swap_layouts().  This can be seen in the debug log by LDLM_BL_CALLBACK (104) RPCs for the two inodes on which the layouts are being swapped (IGIF FID &lt;span class=&quot;error&quot;&gt;&amp;#91;0x24f7ac:0x2d77b0e5:0x0&amp;#93;&lt;/span&gt; and a volatile file FID &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2000061c2:0x4:0x0&amp;#93;&lt;/span&gt;, edited client log with just the important bits):&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;00000002:00000001:1.0:1385592739.077027:0:1247:0:(mdc_request.c:1861:mdc_iocontrol()) Process entered
00000002:00000001:1.0:1385592739.077032:0:1247:0:(mdc_request.c:1804:mdc_ioc_swap_layouts()) Process entered
00000002:00000001:1.0:1385592739.077040:0:1247:0:(mdc_reint.c:82:mdc_resource_get_unused()) Process entered
00010000:00000001:1.0:1385592739.077046:0:1247:0:(lustre_fid.h:719:fid_flatten32()) Process leaving (rc=102506500 : 102506500 : 61c2004)
00000002:00000001:1.0:1385592739.077091:0:1247:0:(mdc_reint.c:105:mdc_resource_get_unused()) Process leaving (rc=0 : 0 : 0)
00000100:00100000:1.0:1385592739.077320:0:1247:0:(client.c:1469:ptlrpc_send_new_req()) Sending RPC pname:cluuid:pid:xid:nid:opc lfs:db82027d-ee92-960a-2336-a3af6ea37680:1247:1452037295952792:192.168.20.1@tcp:61
00000100:00000200:1.0:1385592739.077553:0:19664:0:(events.c:68:request_out_callback()) @@@ type 5, status 0  req@ffff88003bfdb400 x1452037295952792/t0(0) o61-&amp;gt;myth-MDT0000-mdc-ffff8800beb8e000@192.168.20.1@tcp:12/10 lens 568/224 e 0 to 0 dl 1385592746 ref 3 fl Rpc:/0/ffffffff rc 0/-1
00000100:00100000:1.0:1385592739.078146:0:20936:0:(service.c:2011:ptlrpc_server_handle_request()) Handling RPC pname:cluuid+ref:pid:xid:nid:opc ldlm_cb01_000:LMV_MDC_UUID+6:24193:x1451116687256284:12345-192.168.20.1@tcp:104
00010000:00010000:1.0:1385592739.078484:0:21569:0:(ldlm_lockd.c:1654:ldlm_handle_bl_callback()) ### client blocking AST callback handler ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff8800c1dea500/0x1b40bffdae6086d6 lrc: 2/0,0 mode: CR/CR res: [0x2000061c2:0x4:0x0].0 bits 0x8 rrc: 1 type: IBT flags: 0x420000000000 nid: local remote: 0x1ac79fd0e006fbef expref: -99 pid: 1247 timeout: 0 lvb_type: 3
00010000:00010000:1.0:1385592739.078551:0:21569:0:(ldlm_request.c:1127:ldlm_cli_cancel_local()) ### client-side cancel ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff8800c1dea500/0x1b40bffdae6086d6 lrc: 3/0,0 mode: CR/CR res: [0x2000061c2:0x4:0x0].0 bits 0x8 rrc: 1 type: IBT flags: 0x428400000000 nid: local remote: 0x1ac79fd0e006fbef expref: -99 pid: 1247 timeout: 0 lvb_type: 3
00010000:00010000:1.0:1385592739.078920:0:21569:0:(ldlm_request.c:1186:ldlm_cancel_pack()) ### packing ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff8800c1dea500/0x1b40bffdae6086d6 lrc: 2/0,0 mode: --/CR res: [0x2000061c2:0x4:0x0].0 bits 0x8 rrc: 1 type: IBT flags: 0x4c29400000000 nid: local remote: 0x1ac79fd0e006fbef expref: -99 pid: 1247 timeout: 0 lvb_type: 3
00000100:00100000:0.0:1385592739.079019:0:19668:0:(client.c:1469:ptlrpc_send_new_req()) Sending RPC pname:cluuid:pid:xid:nid:opc ptlrpcd_0:db82027d-ee92-960a-2336-a3af6ea37680:19668:1452037295952796:192.168.20.1@tcp:103
00010000:00010000:1.0:1385592739.079041:0:21569:0:(ldlm_lockd.c:1676:ldlm_handle_bl_callback()) ### client blocking callback handler END ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff8800c1dea500/0x1b40bffdae6086d6 lrc: 1/0,0 mode: --/CR res: [0x2000061c2:0x4:0x0].0 bits 0x8 rrc: 1 type: IBT flags: 0x4c29400000000 nid: local remote: 0x1ac79fd0e006fbef expref: -99 pid: 1247 timeout: 0 lvb_type: 3
00000100:00100000:1.0:1385592739.079979:0:20936:0:(service.c:2011:ptlrpc_server_handle_request()) Handling RPC pname:cluuid+ref:pid:xid:nid:opc ldlm_cb01_000:LMV_MDC_UUID+6:24193:x1451116687256288:12345-192.168.20.1@tcp:104
00010000:00010000:1.0:1385592739.080433:0:21567:0:(ldlm_lockd.c:1654:ldlm_handle_bl_callback()) ### client blocking AST callback handler ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff880045f39080/0x1b40bffdae6086a5 lrc: 2/0,0 mode: CR/CR res: [0x24f7ac:0x2d77b0e5:0x0].0 bits 0x9 rrc: 1 type: IBT flags: 0x420000000000 nid: local remote: 0x1ac79fd0e006fb16 expref: -99 pid: 1240 timeout: 0 lvb_type: 0
00010000:00010000:1.0:1385592739.080518:0:21567:0:(ldlm_request.c:1127:ldlm_cli_cancel_local()) ### client-side cancel ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff880045f39080/0x1b40bffdae6086a5 lrc: 3/0,0 mode: CR/CR res: [0x24f7ac:0x2d77b0e5:0x0].0 bits 0x9 rrc: 1 type: IBT flags: 0x428400000000 nid: local remote: 0x1ac79fd0e006fb16 expref: -99 pid: 1240 timeout: 0 lvb_type: 0
00000100:00100000:0.0:1385592739.081065:0:19668:0:(client.c:1469:ptlrpc_send_new_req()) Sending RPC pname:cluuid:pid:xid:nid:opc ptlrpcd_0:db82027d-ee92-960a-2336-a3af6ea37680:19668:1452037295952800:192.168.20.1@tcp:103
00010000:00010000:1.0:1385592739.081083:0:21567:0:(ldlm_lockd.c:1676:ldlm_handle_bl_callback()) ### client blocking callback handler END ns: myth-MDT0000-mdc-ffff8800beb8e000 lock: ffff880045f39080/0x1b40bffdae6086a5 lrc: 1/0,0 mode: --/CR res: [0x24f7ac:0x2d77b0e5:0x0].0 bits 0x9 rrc: 1 type: IBT flags: 0x4c29400000000 nid: local remote: 0x1ac79fd0e006fb16 expref: -99 pid: 1240 timeout: 0 lvb_type: 0
00000100:00000200:1.0:1385592739.081890:0:1247:0:(events.c:120:reply_in_callback()) @@@ unlink  req@ffff88003bfdb400 x1452037295952792/t0(0) o61-&amp;gt;myth-MDT0000-mdc-ffff8800beb8e000@192.168.20.1@tcp:12/10 lens 568/224 e 0 to 0 dl 1385592746 ref 2 fl Rpc:R/0/ffffffff rc 0/-1
00000100:00100000:1.0:1385592739.082096:0:1247:0:(client.c:1834:ptlrpc_check_set()) Completed RPC pname:cluuid:pid:xid:nid:opc lfs:db82027d-ee92-960a-2336-a3af6ea37680:1247:1452037295952792:192.168.20.1@tcp:61
00000002:00000001:1.0:1385592739.082248:0:1247:0:(mdc_request.c:1977:mdc_iocontrol()) Process leaving via out (rc=18446744073709551615 : -1 : 0xffffffffffffffff)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In this case, the layout swap failed with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4293&quot; title=&quot;lfs_migrate is failing with a volatile file Operation not permitted error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4293&quot;&gt;&lt;del&gt;LU-4293&lt;/del&gt;&lt;/a&gt;, but I think this bug is independent of that one.&lt;/p&gt;

&lt;p&gt;It looks like mdt_swap_layouts() needs to call mdt_dlmreq_unpack() as mdt_reint_unpack_*() do, and then if (info-&amp;gt;mti_dlm_req != NULL) call ldlm_request_cancel(mdt_info_req(info), info-&amp;gt;mti_dlm_req, 0).&lt;/p&gt;</description>
                <environment></environment>
        <key id="22250">LU-4320</key>
            <summary>MDS_SWAP_LAYOUTS handler does not handle ELC locks from client</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="jhammond">John Hammond</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Wed, 27 Nov 2013 23:33:36 +0000</created>
                <updated>Wed, 22 Oct 2014 03:45:33 +0000</updated>
                            <resolved>Mon, 17 Mar 2014 15:35:08 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="74379" author="bfaccini" created="Mon, 6 Jan 2014 09:55:04 +0000"  >&lt;p&gt;Hello Andreas, since after &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3834&quot; title=&quot;hsm_cdt_request_completed() may clear HS_RELEASED on failed restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3834&quot;&gt;&lt;del&gt;LU-3834&lt;/del&gt;&lt;/a&gt;/&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4293&quot; title=&quot;lfs_migrate is failing with a volatile file Operation not permitted error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4293&quot;&gt;&lt;del&gt;LU-4293&lt;/del&gt;&lt;/a&gt; I am &quot;hot&quot; on layouts-swap code I will try to work on this ticket and according to the direction you already indicated. Just for my info, how did you discover this problem ?? Simply during &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4293&quot; title=&quot;lfs_migrate is failing with a volatile file Operation not permitted error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4293&quot;&gt;&lt;del&gt;LU-4293&lt;/del&gt;&lt;/a&gt; debugging, when keeping track of Client/Server debug-logs analysis and regarding associated source code ?&lt;/p&gt;</comment>
                            <comment id="74534" author="adilger" created="Wed, 8 Jan 2014 00:46:45 +0000"  >&lt;p&gt;I just saw this in the debug logs while trying to find out why &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; was failing. &lt;/p&gt;</comment>
                            <comment id="77400" author="jlevi" created="Wed, 19 Feb 2014 18:40:03 +0000"  >&lt;p&gt;John,&lt;br/&gt;
Could you please have a look at Andreas&apos; comments in the description and see if this is something you could quickly complete?&lt;br/&gt;
If you have additional questions, feel free to reach out to Oleg.&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="77452" author="jhammond" created="Thu, 20 Feb 2014 03:06:12 +0000"  >&lt;p&gt;Hi Jodi,&lt;/p&gt;

&lt;p&gt;Sure. It seems to be just that LCK_CR is used rather than LCK_EX when calling mdc_resource_get_unused() from mdc_ioc_swap_layouts(). I&apos;ll check this and push a patch in the morning.&lt;/p&gt;</comment>
                            <comment id="77481" author="jhammond" created="Thu, 20 Feb 2014 16:09:22 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/9329&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9329&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="79512" author="jlevi" created="Mon, 17 Mar 2014 15:35:08 +0000"  >&lt;p&gt;Patch landed to Master. Please reopen this ticket if more work is needed.&lt;/p&gt;</comment>
                            <comment id="85183" author="di.wang" created="Thu, 29 May 2014 22:23:05 +0000"  >&lt;p&gt;Hmm, this needs to be landed to 2.5 as well, are there other tickets to track it?&lt;/p&gt;</comment>
                            <comment id="85315" author="adilger" created="Fri, 30 May 2014 21:41:48 +0000"  >&lt;p&gt;Landing patches to maintenance branches is tracked separately after the bug is closed, but we do need to know that it is needed on b2_5.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzwa5j:</customfieldvalue>

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