<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:54:25 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-5774] lu_object_find_at() should NOT test conditional that doesn&apos;t change inside a loop</title>
                <link>https://jira.whamcloud.com/browse/LU-5774</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In lu_object_find_at():&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;       while (1) {
               if (conf != NULL &amp;amp;&amp;amp; conf-&amp;gt;loc_flags &amp;amp; LOC_F_NOWAIT) {
                       obj = lu_object_find_try(env, dev, f, conf, NULL);

                       return obj;
        ......
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I haven&apos;t missed something, it doesn&apos;t make sense to have the &apos;if&apos; conditional inside the while loop - conf is a const struct lu_object_conf *, i.e. it doesn&apos;t change, so the conditional would always evaluate the same.&lt;/p&gt;

&lt;p&gt;When I first read the code, I was misled to believe that the conditional may change so it had to be tested at each iteration.&lt;/p&gt;</description>
                <environment></environment>
        <key id="27118">LU-5774</key>
            <summary>lu_object_find_at() should NOT test conditional that doesn&apos;t change inside a loop</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.whamcloud.com/images/icons/priorities/trivial.svg">Trivial</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="isaac">Isaac Huang</assignee>
                                    <reporter username="isaac">Isaac Huang</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Oct 2014 03:35:58 +0000</created>
                <updated>Wed, 23 Dec 2015 19:00:16 +0000</updated>
                            <resolved>Mon, 5 Jan 2015 23:29:47 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="96788" author="isaac" created="Tue, 21 Oct 2014 03:56:41 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/12354/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/12354/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="101706" author="simmonsja" created="Tue, 16 Dec 2014 15:19:50 +0000"  >&lt;p&gt;This enhancement was included in the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/12741&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/12741&lt;/a&gt; for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5885&quot; title=&quot;LFSCK 3: &#8216;lctl lfsck_start -t namespace&#8217; Not Progressing Under Remove Workload&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5885&quot;&gt;&lt;del&gt;LU-5885&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="27510">LU-5885</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|hzwz1z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16208</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>