<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:51:18 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-12293] Memory leak after router checker packet processing</title>
                <link>https://jira.whamcloud.com/browse/LU-12293</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If net_monitor_thr is stopped with a condition that router checker packet is waiting for retry,&lt;br/&gt;
resources for the packet is not released.&lt;/p&gt;

&lt;p&gt;As a workaround, we correct to wait for completion of router checker shutdown(TIMEOUT is 10sec x 2). After that, purge retry packet.&lt;br/&gt;
Could you discuss how to fix this bug.&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;
diff --git a/lnet/lnet/lib-move.c b/lnet/lnet/lib-move.c
index 5e990d9..3b16d89 100644
--- a/lnet/lnet/lib-move.c
+++ b/lnet/lnet/lib-move.c
@@ -3682,6 +3682,14 @@ void lnet_monitor_thr_stop(void)
        &lt;span class=&quot;code-comment&quot;&gt;/* tell the monitor thread that we&apos;re shutting down */&lt;/span&gt;
        wake_up(&amp;amp;the_lnet.ln_mt_waitq);
 
+       &lt;span class=&quot;code-comment&quot;&gt;/* wait tx completion &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; router checker */&lt;/span&gt;
+       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (atomic_read(&amp;amp;the_lnet.ln_routers_nsends)) {
+               set_current_state(TASK_UNINTERRUPTIBLE);
+               schedule_timeout(cfs_time_seconds(lnet_get_lnd_timeout() * 2));
+       }
+       &lt;span class=&quot;code-comment&quot;&gt;/* purge resend messages */&lt;/span&gt;
+       lnet_clean_resendqs();
+
        &lt;span class=&quot;code-comment&quot;&gt;/* block until monitor thread signals that it&apos;s done */&lt;/span&gt;
        down(&amp;amp;the_lnet.ln_mt_signal);
        LASSERT(the_lnet.ln_mt_state == LNET_MT_STATE_SHUTDOWN);
@@ -3691,7 +3699,6 @@ void lnet_monitor_thr_stop(void)
        lnet_rsp_tracker_clean();
        lnet_clean_local_ni_recoveryq();
        lnet_clean_peer_ni_recoveryq();
-       lnet_clean_resendqs();
        rc = LNetEQFree(the_lnet.ln_mt_eqh);
        LASSERT(rc == 0);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt;;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="55621">LU-12293</key>
            <summary>Memory leak after router checker packet processing</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="takamura">Tatsushi Takamura</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 May 2019 10:40:56 +0000</created>
                <updated>Fri, 30 Aug 2019 10:40:58 +0000</updated>
                                            <version>Lustre 2.12.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="247268" author="ashehata" created="Thu, 16 May 2019 14:52:16 +0000"  >&lt;p&gt;Please take a look at the below patches. They are all part of the multi-rail branch.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/34445/4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34445/4&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34477/5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34477/5&lt;/a&gt; &amp;lt;-- would this one fixes the issue on this ticket?&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34252/7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34252/7&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34607/3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34607/3&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34770/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34770/2&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34771/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34771/2&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34778/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34778/2&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34796/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34796/2&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34798/3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34798/3&lt;/a&gt;&lt;br/&gt;
 &lt;a href=&quot;https://review.whamcloud.com/#/c/34885/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34885/1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/34477/5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34477/5&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="253922" author="takamura" created="Fri, 30 Aug 2019 10:40:58 +0000"  >&lt;p&gt;Amir Shehata,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Sorry for the late reply. We are going to check these patches.&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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>lnet</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00g67:</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>