<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:04:05 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-6881] sub_trans_commit_cb() is racy</title>
                <link>https://jira.whamcloud.com/browse/LU-6881</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sub_trans_commit_cb() can be called by in parallel, so all_committed could be set to false even if all sub transactions are committed.&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-keyword&quot;&gt;static&lt;/span&gt; void sub_trans_commit_cb(struct lu_env *env,
                                struct thandle *sub_th,
                                struct dt_txn_commit_cb *cb, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; err)
{
        struct sub_thandle      *st;
        struct top_multiple_thandle *tmt = cb-&amp;gt;dcb_data;
        bool                    all_committed = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
        ENTRY;

        &lt;span class=&quot;code-comment&quot;&gt;/* Check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; all sub thandles are committed */&lt;/span&gt;
        list_for_each_entry(st, &amp;amp;tmt-&amp;gt;tmt_sub_thandle_list, st_sub_list) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (st-&amp;gt;st_sub_th == sub_th) {
                        st-&amp;gt;st_committed = 1;
                        st-&amp;gt;st_result = err;
                }
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!st-&amp;gt;st_committed)
                        all_committed = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        }

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (tmt-&amp;gt;tmt_result == 0)
                tmt-&amp;gt;tmt_result = err;

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (all_committed)
                top_trans_committed_cb(tmt);

        top_multiple_thandle_dump(tmt, D_INFO);
        top_multiple_thandle_put(tmt);
        RETURN_EXIT;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="31142">LU-6881</key>
            <summary>sub_trans_commit_cb() is racy</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="niu">Niu Yawei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Jul 2015 06:54:31 +0000</created>
                <updated>Thu, 13 Aug 2015 00:07:20 +0000</updated>
                            <resolved>Thu, 13 Aug 2015 00:07:20 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="121972" author="gerrit" created="Thu, 23 Jul 2015 03:05:43 +0000"  >&lt;p&gt;wangdi (di.wang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15690&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15690&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6881&quot; title=&quot;sub_trans_commit_cb() is racy&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6881&quot;&gt;&lt;del&gt;LU-6881&lt;/del&gt;&lt;/a&gt; update: add lock to protect commit check&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b351081da4835a6d6d3ccd8f9bebe4e60c591740&lt;/p&gt;</comment>
                            <comment id="124005" author="gerrit" created="Thu, 13 Aug 2015 00:01:16 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15690/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15690/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6881&quot; title=&quot;sub_trans_commit_cb() is racy&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6881&quot;&gt;&lt;del&gt;LU-6881&lt;/del&gt;&lt;/a&gt; update: add lock to protect commit check&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 58c571070e72c6912aea47da5d90e7365d626d6b&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|hzxijj:</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>