<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:15:34 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-15115] ptlrpc resend on EINPROGRESS timeouts can be not correct</title>
                <link>https://jira.whamcloud.com/browse/LU-15115</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It appears request resend on EINPROGRESS reply may happen not early than the request expires:&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;00000100:00100000:2.0:1630664693.569340:0:2236:0:(client.c:1461:after_reply()) @@@ Resending request on EINPROGRESS  req@ffff9873c9fb6300 x1709875676995456/t0(0) o36-&amp;gt;lustre-MDT0000-mdc-ffff9873b91a8800@0@lo:12/10 lens 496/456 e 0 to 0 dl 1630664736 ref 2 fl Rpc:R/0/0 rc 0/-115 job:&apos;unlinkmany.0&apos;

...

00000100:00100000:2.0:1630664735.433532:0:2236:0:(niobuf.c:757:ptl_send_rpc()) @@@ Allocating new xid for resend on EINPROGRESS  req@ffff9873c9fb6300 x1709875677015680/t0(0) o36-&amp;gt;lustre-MDT0000-mdc-ffff9873b91a8800@0@lo:12/10 lens 496/456 e 0 to 0 dl 1630664736 ref 2 fl Rpc:RS/0/0 rc 0/-115 job:&apos;unlinkmany.0&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;as you can see above, the resend is in 40 sec after getting &amp;#45;EINPROGRESS reply.&lt;/p&gt;

&lt;p&gt;at the same time, after_reply() has a code snippet with another logic:&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-comment&quot;&gt;/* retry indefinitely on EINPROGRESS */&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lustre_msg_get_status(req-&amp;gt;rq_repmsg) == -EINPROGRESS &amp;amp;&amp;amp;
            ptlrpc_no_resend(req) == 0 &amp;amp;&amp;amp; !req-&amp;gt;rq_no_retry_einprogress) {
                time64_t now = ktime_get_real_seconds();

                DEBUG_REQ(req-&amp;gt;rq_nr_resend &amp;gt; 0 ? D_ERROR : D_RPCTRACE, req,
                          &lt;span class=&quot;code-quote&quot;&gt;&quot;Resending request on EINPROGRESS&quot;&lt;/span&gt;);
                spin_lock(&amp;amp;req-&amp;gt;rq_lock);
                req-&amp;gt;rq_resend = 1;
                req-&amp;gt;rq_deadline = now;
                spin_unlock(&amp;amp;req-&amp;gt;rq_lock);
                req-&amp;gt;rq_nr_resend++;

                &lt;span class=&quot;code-comment&quot;&gt;/* Readjust the timeout &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; current conditions */&lt;/span&gt;
                ptlrpc_at_set_req_timeout(req);
                /* delay resend to give a chance to the server to get ready.
                 * The delay is increased by 1s on every resend and is capped to
                 * the current request timeout (i.e. obd_timeout &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; AT is off,
                 * or AT service time x 125% + 5s, see at_est2timeout) */
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (req-&amp;gt;rq_nr_resend &amp;gt; req-&amp;gt;rq_timeout)
                        req-&amp;gt;rq_sent = now + req-&amp;gt;rq_timeout;
                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                        req-&amp;gt;rq_sent = now + req-&amp;gt;rq_nr_resend;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="66689">LU-15115</key>
            <summary>ptlrpc resend on EINPROGRESS timeouts can be not correct</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="zam">Alexander Zarochentsev</assignee>
                                    <reporter username="zam">Alexander Zarochentsev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Oct 2021 18:14:07 +0000</created>
                <updated>Wed, 4 Jan 2023 20:39:01 +0000</updated>
                            <resolved>Wed, 27 Oct 2021 03:48:43 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="315741" author="zam" created="Fri, 15 Oct 2021 18:16:44 +0000"  >&lt;p&gt;the issue was discovered while running &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15114&quot; title=&quot;ASSERTION( atomic_read(&amp;amp;d-&amp;gt;opd_sync_changes) &amp;gt; 0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15114&quot;&gt;&lt;del&gt;LU-15114&lt;/del&gt;&lt;/a&gt; test, sometimes the unlinks take abnormally long time:&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;== sanity test 831: throttling unlink/setattr queuing on OSP ========================================================== 20:47:10 (1634320030)
total: 1000 open/close in 3.51 seconds: 285.16 ops/second
 - unlinked 0 (time 1634320036 ; total 0 ; last 0)
total: 1000 unlinks in 390 seconds: 2.564103 unlinks/second
PASS 831 (398s)
== sanity test complete, duration 490 sec ================ 20:53:48 (1634320428)
Stopping clients: devvm1 /mnt/lustre (opts:-f)
Stopping client devvm1 /mnt/lustre opts:-f
Stopping clients: devvm1 /mnt/lustre2 (opts:-f)
Stopping /mnt/lustre-mds1 (opts:-f) on devvm1
Stopping /mnt/lustre-mds2 (opts:-f) on devvm1
Stopping /mnt/lustre-ost1 (opts:-f) on devvm1
Stopping /mnt/lustre-ost2 (opts:-f) on devvm1
LNET ready to unload
modules unloaded.
[root@devvm1 tests]# 

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="315746" author="gerrit" created="Fri, 15 Oct 2021 18:50:29 +0000"  >&lt;p&gt;&quot;Alexander Zarochentsev &amp;lt;alexander.zarochentsev@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45266&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45266&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15115&quot; title=&quot;ptlrpc resend on EINPROGRESS timeouts can be not correct&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15115&quot;&gt;&lt;del&gt;LU-15115&lt;/del&gt;&lt;/a&gt; ptlrpc: recalc timer on EINPROGRESS reply&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 737f6d2e7a32d95669c6039241db2873313fc387&lt;/p&gt;</comment>
                            <comment id="316623" author="gerrit" created="Wed, 27 Oct 2021 00:35:27 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45266/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45266/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15115&quot; title=&quot;ptlrpc resend on EINPROGRESS timeouts can be not correct&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15115&quot;&gt;&lt;del&gt;LU-15115&lt;/del&gt;&lt;/a&gt; ptlrpc: recalc timer on EINPROGRESS reply&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9a5bace55a5ddb8a928af2de1b199e968f3fbecd&lt;/p&gt;</comment>
                            <comment id="316651" author="pjones" created="Wed, 27 Oct 2021 03:48:43 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="321440" author="gerrit" created="Thu, 23 Dec 2021 12:58:52 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45926&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45926&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15115&quot; title=&quot;ptlrpc resend on EINPROGRESS timeouts can be not correct&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15115&quot;&gt;&lt;del&gt;LU-15115&lt;/del&gt;&lt;/a&gt; ptlrpc: recalc timer on EINPROGRESS reply&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 53719e696f91f925bd119a2f097f02937c132b6d&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="66688">LU-15114</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|i027hb:</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>