<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:39:35 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-10945] Race between sending bl ast and lock cancel</title>
                <link>https://jira.whamcloud.com/browse/LU-10945</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There is a race between blocking ast send and ldlm_request_cancel. The first thread is ldlm_server_blocking_ast, the second is ldlm_request_cancel.&lt;/p&gt;

&lt;p&gt;1.&#160;ldlm_server_blocking_ast&lt;br/&gt;
 2. at_measure with current time&lt;br/&gt;
 1. at_get before at_current became at_max&lt;br/&gt;
 1. rq_delay_limit = 1.5*current_time&lt;br/&gt;
 1. ptlrpc_send_limit_expired&lt;br/&gt;
 1. cfs_time_seconds wrong type conversion (After 64bit time fix this is not happen)&lt;br/&gt;
 1. ETIMEDOUT&lt;br/&gt;
 1. Client eviction&lt;/p&gt;

&lt;p&gt;So, at master 2.11 AT history is affected, and wrong at_get with current time. And evictions are impossible, instead of older 2.10.54 etc.&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:6.0:1518731697.761061:0:104827:0:(ldlm_lockd.c:1317:ldlm_handle_enqueue0()) ### server-side enqueue handler, new lock created ns: filter-snx11210-OST0004_UUID lock: ffff88060b224500/0x29e2650fb9a5aa0a lrc: 2/0,0 mode: --/PW res: [0x20567e43:0x0:0x0].0 rrc: 3 type: EXT [0-&amp;gt;0] (req 0-&amp;gt;0) flags: 0x40000000000000 nid: local remote: 0xec7dc906bbe31375 cl:  expref: -99 pid: 104827 timeout: 0 lvb_type: 0
00010000:00010000:6.0:1518731697.761071:0:104827:0:(ldlm_lock.c:762:ldlm_add_bl_work_item()) ### lock incompatible; sending blocking AST. ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 3/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 4 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x40000000000000 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 1
00010000:00010000:6.0:1518731697.761075:0:104827:0:(ldlm_extent.c:317:ldlm_check_contention()) contended locks = 0
00010000:00010000:6.0:1518731697.761076:0:104827:0:(ldlm_extent.c:317:ldlm_check_contention()) contended locks = 0
00010000:00010000:6.0:1518731697.761077:0:104827:0:(ldlm_resource.c:1318:ldlm_resource_add_lock()) ### About to add this lock:
 ns: filter-snx11210-OST0004_UUID lock: ffff88060b224500/0x29e2650fb9a5aa0a lrc: 4/0,0 mode: --/PW res: [0x20567e43:0x0:0x0].0 rrc: 4 type: EXT [0-&amp;gt;3543039] (req 0-&amp;gt;3543039) flags: 0x50000000000000 nid: 3056@gni remote: 0xec7dc906bbe31375 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 0
00010000:00010000:6.0:1518731697.761088:0:104827:0:(ldlm_lockd.c:897:ldlm_server_blocking_ast()) ### server preparing blocking AST ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 4/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x50000000000020 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 1
00010000:00010000:17.0:1518731697.761089:0:30249:0:(ldlm_lockd.c:1704:ldlm_request_cancel()) ### server cancels blocked lock after 1518731697s ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 4/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x50000000000020 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 1
00010000:00010000:6.0:1518731697.761093:0:104827:0:(ldlm_lockd.c:481:ldlm_add_waiting_lock()) ### adding to wait list(timeout: 600, AT: on) ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 5/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x70000000000020 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 15911500223 lvb_type: 1
00000100:00080000:6.0:1518731697.761098:0:104827:0:(client.c:1113:ptlrpc_import_delay_req()) @@@ send limit expired   req@ffff880364d7d0c0 x1580326886726864/t0(0) o104-&amp;gt;snx11210-OST0004@3056@gni:15/16 lens 296/224 e 0 to 0 dl 0 ref 1 fl Rpc:/0/ffffffff rc 0/-1
00010000:00010000:17.0:1518731697.761099:0:30249:0:(ldlm_lockd.c:546:ldlm_del_waiting_lock()) ### removed ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 5/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 4 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x50000000000020 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 15911500223 lvb_type: 1
00010000:00020000:6.0:1518731697.761104:0:104827:0:(ldlm_lockd.c:679:ldlm_handle_ast_error()) ### client (nid 3056@gni) failed to reply to blocking AST (req status 0 rc -110), evict it ns: filter-snx11210-OST0004_UUID lock: ffff8806d0052100/0x29e2650fb9a5a9d9 lrc: 4/0,0 mode: PR/PR res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x50000000000020 nid: 3056@gni remote: 0xec7dc906bbe31359 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 15911500223 lvb_type: 1
00010000:00010000:17.0:1518731697.761112:0:30249:0:(ldlm_extent.c:317:ldlm_check_contention()) contended locks = 0
00010000:00010000:17.0:1518731697.761113:0:30249:0:(ldlm_extent.c:317:ldlm_check_contention()) contended locks = 0
00010000:00010000:17.0:1518731697.761117:0:30249:0:(ldlm_lock.c:783:ldlm_add_cp_work_item()) ### lock granted; sending completion AST. ns: filter-snx11210-OST0004_UUID lock: ffff88060b224500/0x29e2650fb9a5aa0a lrc: 3/0,0 mode: PW/PW res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;3543039) flags: 0x50080000000000 nid: 3056@gni remote: 0xec7dc906bbe31375 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 0
00010000:00010000:17.0:1518731697.761123:0:30249:0:(ldlm_resource.c:1318:ldlm_resource_add_lock()) ### About to add this lock:
 ns: filter-snx11210-OST0004_UUID lock: ffff88060b224500/0x29e2650fb9a5aa0a lrc: 4/0,0 mode: PW/PW res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;3543039) flags: 0x50080000000000 nid: 3056@gni remote: 0xec7dc906bbe31375 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 0
00010000:00010000:17.0:1518731697.761143:0:30249:0:(ldlm_lockd.c:1013:ldlm_server_completion_ast()) ### server preparing completion AST ns: filter-snx11210-OST0004_UUID lock: ffff88060b224500/0x29e2650fb9a5aa0a lrc: 4/0,0 mode: PW/PW res: [0x20567e43:0x0:0x0].0 rrc: 5 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;3543039) flags: 0x40000000000000 nid: 3056@gni remote: 0xec7dc906bbe31375 cl: 8e1b6d75-1b38-60f5-93bb-46c98cadf380 expref: 7 pid: 104827 timeout: 0 lvb_type: 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="51953">LU-10945</key>
            <summary>Race between sending bl ast and lock cancel</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="1">Fixed</resolution>
                                        <assignee username="aboyko">Alexander Boyko</assignee>
                                    <reporter username="aboyko">Alexander Boyko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 24 Apr 2018 12:34:17 +0000</created>
                <updated>Sat, 23 Feb 2019 05:30:16 +0000</updated>
                            <resolved>Tue, 29 May 2018 10:54:52 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="226610" author="gerrit" created="Tue, 24 Apr 2018 12:36:40 +0000"  >&lt;p&gt;Alexandr Boyko (c17825@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32133&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32133&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10945&quot; title=&quot;Race between sending bl ast and lock cancel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10945&quot;&gt;&lt;del&gt;LU-10945&lt;/del&gt;&lt;/a&gt; ldlm: fix l_last_activity using&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 088764cebf10b4a42467f5877d17a079b82c3edc&lt;/p&gt;</comment>
                            <comment id="228724" author="gerrit" created="Tue, 29 May 2018 04:53:45 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32133/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32133/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10945&quot; title=&quot;Race between sending bl ast and lock cancel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10945&quot;&gt;&lt;del&gt;LU-10945&lt;/del&gt;&lt;/a&gt; ldlm: fix l_last_activity usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e09d273cb5f218a857d22011ab3035f7b178b023&lt;/p&gt;</comment>
                            <comment id="228744" author="pjones" created="Tue, 29 May 2018 10:54:52 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="240882" author="gerrit" created="Tue, 29 Jan 2019 17:47:31 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34131&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34131&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10945&quot; title=&quot;Race between sending bl ast and lock cancel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10945&quot;&gt;&lt;del&gt;LU-10945&lt;/del&gt;&lt;/a&gt; ldlm: fix l_last_activity usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8800d47e1195cf92b738f1be8d15085178902568&lt;/p&gt;</comment>
                            <comment id="242583" author="gerrit" created="Sat, 23 Feb 2019 05:10:03 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34131/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34131/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10945&quot; title=&quot;Race between sending bl ast and lock cancel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10945&quot;&gt;&lt;del&gt;LU-10945&lt;/del&gt;&lt;/a&gt; ldlm: fix l_last_activity usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 20722fbd3d4fd5e83773332753069e8bec0d2b15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="54398">LU-11826</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="42994">LU-9019</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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzw9r:</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>