<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:05:21 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-7026] Suspicious condition in lfsck_layout_slave_exec_oit</title>
                <link>https://jira.whamcloud.com/browse/LU-7026</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the master code we have this snippet in lfsck_layout_slave_exec_oit:&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;if&lt;/span&gt; (oid &amp;gt; lls-&amp;gt;lls_lastid) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!(lo-&amp;gt;ll_flags &amp;amp; LF_CRASHED_LASTID)) {
                        &lt;span class=&quot;code-comment&quot;&gt;/* OFD may create &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; objects during LFSCK scanning. */&lt;/span&gt;
                        rc = lfsck_layout_lastid_reload(env, com, lls);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(rc != 0)) {
                                CDEBUG(D_LFSCK, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: layout LFSCK failed to &quot;&lt;/span&gt;
                                      &lt;span class=&quot;code-quote&quot;&gt;&quot;reload LAST_ID &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &quot;&lt;/span&gt;LPX64&lt;span class=&quot;code-quote&quot;&gt;&quot;: rc = %d\n&quot;&lt;/span&gt;,
                                      lfsck_lfsck2name(com-&amp;gt;lc_lfsck),
                                      lls-&amp;gt;lls_seq, rc);

                                GOTO(unlock, rc);
                        }

                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (oid &amp;lt;= lls-&amp;gt;lls_lastid ||
                            lo-&amp;gt;ll_flags &amp;amp; LF_CRASHED_LASTID)
                                GOTO(unlock, rc = 0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Note that we are still in the !(lo-&amp;gt;ll_flags &amp;amp; LF_CRASHED_LASTID) branch, so why test for it one more time? Was there something else in mind?&lt;br/&gt;
I don&apos;t see any locking implying a parallel thread set it or any function calls in between that might have changed it too.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31599">LU-7026</key>
            <summary>Suspicious condition in lfsck_layout_slave_exec_oit</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="6">Not a Bug</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Aug 2015 19:53:22 +0000</created>
                <updated>Thu, 10 Sep 2015 05:10:22 +0000</updated>
                            <resolved>Thu, 10 Sep 2015 05:10:22 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="124754" author="yong.fan" created="Thu, 20 Aug 2015 22:59:55 +0000"  >&lt;p&gt;The lfsck_layout_lastid_reload() will be called inside the branch &quot;if (!(lo-&amp;gt;ll_flags &amp;amp; LF_CRASHED_LASTID)) {&quot;, and may set LF_CRASHED_LASTID.&lt;/p&gt;</comment>
                            <comment id="124803" author="jgmitter" created="Fri, 21 Aug 2015 17:14:36 +0000"  >&lt;p&gt;Fan Yong,&lt;br/&gt;
Can you take a look at this issue?&lt;br/&gt;
Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="124805" author="green" created="Fri, 21 Aug 2015 17:16:48 +0000"  >&lt;p&gt;But I do not see lo to be passed into lfsck_layout_lastid_reload(), does it get to it in some other way?&lt;/p&gt;</comment>
                            <comment id="124807" author="yong.fan" created="Fri, 21 Aug 2015 17:19:27 +0000"  >&lt;p&gt;&quot;lo&quot; is one of the member of &quot;com&quot; that is the parameter of lfsck_layout_lastid_reload().&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|hzxkxr:</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>