<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:47:52 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-11896] Memory leak occurs when lfs mkdir fails</title>
                <link>https://jira.whamcloud.com/browse/LU-11896</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When lfs mkdir fails, llog_cat_cancel_records() is executed for error handling. But, in a condition of !llog_exist(loghandle), llog_handle_put() is not executed (that is, lgh_refcount is not decremented), so llog_free_handle() will not be executed in umount. This cause memory leak.&lt;/p&gt;

&lt;p&gt;&#160;&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;
 682 &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; llog_cat_cancel_records(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env,
 683 struct llog_handle *cathandle, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; count,
 684 struct llog_cookie *cookies)
 685 {
 686 &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; i, index, rc = 0, failed = 0;
 687
 688 ENTRY;
 689
 690 &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt; count; i++, cookies++) {
 691 struct llog_handle *loghandle;
 692 struct llog_logid *lgl = &amp;amp;cookies-&amp;gt;lgc_lgl;
 693 &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; lrc;
 694
 695 rc = llog_cat_id2handle(env, cathandle, &amp;amp;loghandle, lgl);
 &lt;span class=&quot;code-comment&quot;&gt;// llog_cat_id2handle(llog_handle_get) increments lgh_refcount
&lt;/span&gt;&amp;lt;snip&amp;gt;
 705 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((cathandle-&amp;gt;lgh_ctxt-&amp;gt;loc_flags &amp;amp;
 706 LLOG_CTXT_FLAG_NORMAL_FID) &amp;amp;&amp;amp; !llog_exist(loghandle)) {
 707 /* For update log, some of loghandles of cathandle
 708 * might not exist because remote llog creation might
 709 * be failed, so let&apos;s skip the record cancellation
 710 * &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; these non-exist llogs.
 711 */
 712 lrc = -ENOENT;
 713 CDEBUG(D_HA, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: llog &quot;&lt;/span&gt;DFID&lt;span class=&quot;code-quote&quot;&gt;&quot;:%x does not exist&quot;&lt;/span&gt;
 714 &lt;span class=&quot;code-quote&quot;&gt;&quot;: rc = %d\n&quot;&lt;/span&gt;,
 715 cathandle-&amp;gt;lgh_ctxt-&amp;gt;loc_obd-&amp;gt;obd_name,
 716 PFID(&amp;amp;lgl-&amp;gt;lgl_oi.oi_fid), lgl-&amp;gt;lgl_ogen, lrc);
 717 failed++;
 718 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == 0)
 719 rc = lrc;
 &lt;span class=&quot;code-comment&quot;&gt;// llog_handle_put() should be called to decrement lgh_refcount
&lt;/span&gt; 720 &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;
 721 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="54689">LU-11896</key>
            <summary>Memory leak occurs when lfs mkdir fails</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="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="3">Duplicate</resolution>
                                        <assignee username="takamura">Tatsushi Takamura</assignee>
                                    <reporter username="takamura">Tatsushi Takamura</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2019 05:45:34 +0000</created>
                <updated>Tue, 1 Oct 2019 18:43:08 +0000</updated>
                            <resolved>Tue, 1 Oct 2019 18:43:08 +0000</resolved>
                                    <version>Lustre 2.10.5</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="240841" author="gerrit" created="Tue, 29 Jan 2019 06:06:08 +0000"  >&lt;p&gt;Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34126&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34126&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11896&quot; title=&quot;Memory leak occurs when lfs mkdir fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11896&quot;&gt;&lt;del&gt;LU-11896&lt;/del&gt;&lt;/a&gt; obdclass: Memory leak occurs when lfs mkdir fails&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8e6c5e1ac48abf47aa890f4d17717989c9bc0ae3&lt;/p&gt;</comment>
                            <comment id="242200" author="takamura" created="Tue, 19 Feb 2019 01:00:29 +0000"  >&lt;p&gt;This bug seems to be fixed by the patch of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11924&quot; title=&quot;Combine cancellation of llog records at osp_sync_process_committed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11924&quot;&gt;&lt;del&gt;LU-11924&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="255747" author="adilger" created="Tue, 1 Oct 2019 18:43:08 +0000"  >&lt;p&gt;Fixed via patch &lt;a href=&quot;https://review.whamcloud.com/34179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34179&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11924&quot; title=&quot;Combine cancellation of llog records at osp_sync_process_committed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11924&quot;&gt;&lt;del&gt;LU-11924&lt;/del&gt;&lt;/a&gt; osp: combine llog cancel operations&lt;/tt&gt;&quot; which is included in 2.13.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54774">LU-11924</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i00afz:</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>