<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:11:41 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-7760] Incorrect pid printing in ptlrpc_send_new_req</title>
                <link>https://jira.whamcloud.com/browse/LU-7760</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It appears that ptlrpc_send_new_req message prints pid as always 0:&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;00000100:00080000:5.0:1454959735.275832:0:27539:0:(client.c:1385:ptlrpc_send_new
_req()) @@@ req from PID 0 waiting &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; recovery: (FULL != DISCONN)  req@ffff8800
3f386b80 x1525630506782200/t0(0) o13-&amp;gt;lustre-OST0000-osc-ffff8800cdc0f000@192.16
8.10.227@tcp:7/4 lens 224/368 e 0 to 0 dl 0 ref 1 fl Rpc:W/0/ffffffff rc 0/-1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is because the message itself is printed before we set the value in the request:&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;                DEBUG_REQ(D_HA, req, &lt;span class=&quot;code-quote&quot;&gt;&quot;req from PID %d waiting &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; recovery: &quot;&lt;/span&gt;
                          &lt;span class=&quot;code-quote&quot;&gt;&quot;(%s != %s)&quot;&lt;/span&gt;, lustre_msg_get_status(req-&amp;gt;rq_reqmsg),
                          ptlrpc_import_state_name(req-&amp;gt;rq_send_state),
                          ptlrpc_import_state_name(imp-&amp;gt;imp_state));
                LASSERT(list_empty(&amp;amp;req-&amp;gt;rq_list));
                list_add_tail(&amp;amp;req-&amp;gt;rq_list, &amp;amp;imp-&amp;gt;imp_delayed_list);
                atomic_inc(&amp;amp;req-&amp;gt;rq_import-&amp;gt;imp_inflight);
                spin_unlock(&amp;amp;imp-&amp;gt;imp_lock);
                RETURN(0);
        }
...
        lustre_msg_set_status(req-&amp;gt;rq_reqmsg, current_pid());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As such we should either move the set_status before that printing or just do current_pid() in that message which is likely even better.&lt;/p&gt;</description>
                <environment></environment>
        <key id="34560">LU-7760</key>
            <summary>Incorrect pid printing in ptlrpc_send_new_req</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.whamcloud.com/images/icons/priorities/trivial.svg">Trivial</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="sbuisson">Sebastien Buisson</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                            <label>easy</label>
                            <label>hackathon2017</label>
                    </labels>
                <created>Mon, 8 Feb 2016 22:56:34 +0000</created>
                <updated>Wed, 19 Jul 2017 03:54:50 +0000</updated>
                            <resolved>Wed, 19 Jul 2017 03:54:50 +0000</resolved>
                                                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="141558" author="green" created="Mon, 8 Feb 2016 22:59:15 +0000"  >&lt;p&gt;I guess since current pid is part of the message header, we might not even need to print it at all?&lt;/p&gt;</comment>
                            <comment id="197611" author="gerrit" created="Tue, 30 May 2017 21:42:14 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27336&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27336&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7760&quot; title=&quot;Incorrect pid printing in ptlrpc_send_new_req&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7760&quot;&gt;&lt;del&gt;LU-7760&lt;/del&gt;&lt;/a&gt; ptlrpc: remove incorrect pid printing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4ed4cc995f466ab93dcefcf2822fb293734794eb&lt;/p&gt;</comment>
                            <comment id="202632" author="gerrit" created="Wed, 19 Jul 2017 03:32:33 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/27336/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27336/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7760&quot; title=&quot;Incorrect pid printing in ptlrpc_send_new_req&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7760&quot;&gt;&lt;del&gt;LU-7760&lt;/del&gt;&lt;/a&gt; ptlrpc: remove incorrect pid printing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3283170eeb05eb701197d981fa773b86f63c8a33&lt;/p&gt;</comment>
                            <comment id="202645" author="pjones" created="Wed, 19 Jul 2017 03:54:50 +0000"  >&lt;p&gt;Landed for 2.11&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|hzy0pb:</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>