<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:04:01 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-6873] Double mutex unlock in lod_add_device</title>
                <link>https://jira.whamcloud.com/browse/LU-6873</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Seems there&apos;s a double mutex unlock on error path in lod_add_device.&lt;br/&gt;
Also in the same vein, there seems to be double reference drop&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;        cfs_bitmap_set(ltd-&amp;gt;ltd_tgt_bitmap, index);
        ltd-&amp;gt;ltd_tgtnr++;
        mutex_unlock(&amp;amp;ltd-&amp;gt;ltd_mutex);
        lod_putref(lod, ltd);
...
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!for_ost &amp;amp;&amp;amp; lod-&amp;gt;lod_initialized) {
                rc = lod_sub_init_llog(env, lod, tgt_desc-&amp;gt;ltd_tgt);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) {
                        CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: cannot start llog on %s:rc = %d\n&quot;&lt;/span&gt;,
                               lod2obd(lod)-&amp;gt;obd_name, osp, rc);
**                        GOTO(out_pool, rc);
                }
        }
        rc = lfsck_add_target(env, lod-&amp;gt;lod_child, d, exp, index, for_ost);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) {
                CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;Fail to add LFSCK target: name = %s, type = %s, &quot;&lt;/span&gt;
                       &lt;span class=&quot;code-quote&quot;&gt;&quot;index = %u, rc = %d\n&quot;&lt;/span&gt;, osp, type, index, rc);
**                GOTO(out_fini_llog, rc);
...
out_fini_llog:
        lod_sub_fini_llog(env, tgt_desc-&amp;gt;ltd_tgt,
                          tgt_desc-&amp;gt;ltd_recovery_thread);
out_pool:
        lod_ost_pool_remove(&amp;amp;lod-&amp;gt;lod_pool_info, index);
out_mutex:
        mutex_unlock(&amp;amp;ltd-&amp;gt;ltd_mutex);
        lod_putref(lod, ltd);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So we do double unlock and double reference put in those two cases which is probably a pretty bad idea,&lt;/p&gt;</description>
                <environment></environment>
        <key id="31134">LU-6873</key>
            <summary>Double mutex unlock in lod_add_device</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="1">Fixed</resolution>
                                        <assignee username="di.wang">Di Wang</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 18 Jul 2015 18:19:42 +0000</created>
                <updated>Tue, 22 Dec 2015 03:15:35 +0000</updated>
                            <resolved>Fri, 28 Aug 2015 14:05:18 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="121706" author="jgmitter" created="Mon, 20 Jul 2015 17:18:54 +0000"  >&lt;p&gt;Fan Yong,&lt;/p&gt;

&lt;p&gt;You you please have look at this issue?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="122808" author="yong.fan" created="Fri, 31 Jul 2015 01:46:32 +0000"  >&lt;p&gt;This issue is introduced by the DNE patch &lt;a href=&quot;http://review.whamcloud.com/11408&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11408&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Wang Di, would you please to re-work your patch? Thanks!&lt;/p&gt;</comment>
                            <comment id="124951" author="gerrit" created="Mon, 24 Aug 2015 20:19:45 +0000"  >&lt;p&gt;wangdi (di.wang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16067&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16067&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6873&quot; title=&quot;Double mutex unlock in lod_add_device&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6873&quot;&gt;&lt;del&gt;LU-6873&lt;/del&gt;&lt;/a&gt; lod: duplicate mutex unlock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: daca6187188b5ed42dfd088f9b5f4438eb3f5f0b&lt;/p&gt;</comment>
                            <comment id="125478" author="gerrit" created="Fri, 28 Aug 2015 02:07:35 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16067/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16067/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6873&quot; title=&quot;Double mutex unlock in lod_add_device&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6873&quot;&gt;&lt;del&gt;LU-6873&lt;/del&gt;&lt;/a&gt; lod: duplicate mutex unlock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0ab9e68328e2cfbcf4f891d68055b9243a1f553c&lt;/p&gt;</comment>
                            <comment id="125536" author="jgmitter" created="Fri, 28 Aug 2015 14:05:18 +0000"  >&lt;p&gt;Landed for 2.8.&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|hzxihr:</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>