<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:18:47 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-8579] oti_dev is never set, but is used</title>
                <link>https://jira.whamcloud.com/browse/LU-8579</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The &lt;tt&gt;oti_dev&lt;/tt&gt; member of &lt;tt&gt;osd_thread_info&lt;/tt&gt; is never set, but is used in a check:&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-object&quot;&gt;int&lt;/span&gt; osd_ldiskfs_add_entry(struct osd_thread_info *info,
                          handle_t *handle, struct dentry *child,
                          struct inode *inode, struct htree_lock *hlock)
{
        rc = __ldiskfs_add_entry(handle, child, inode, hlock);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == -ENOBUFS || rc == -ENOSPC) {
                struct lu_fid fid = { };
                :
                :
                rc2 = osd_get_lma(info, p_dentry-&amp;gt;d_inode, p_dentry, &amp;amp;lma);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc2 == 0) {
                        fid = lma.lma_self_fid;
                        snprintf(fidbuf, sizeof(fidbuf), DFID, PFID(&amp;amp;fid));
                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc2 == -ENODATA) {
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(p_dentry-&amp;gt;d_inode ==
                                     inode-&amp;gt;i_sb-&amp;gt;s_root-&amp;gt;d_inode))
                                lu_local_obj_fid(&amp;amp;fid, OSD_FS_ROOT_OID);
                        &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (info-&amp;gt;oti_dev &amp;amp;&amp;amp; !info-&amp;gt;oti_dev-&amp;gt;od_is_ost &amp;amp;&amp;amp;
                                 fid_seq_is_mdt0(fid_seq(&amp;amp;fid)))
                                lu_igif_build(&amp;amp;fid, p_dentry-&amp;gt;d_inode-&amp;gt;i_ino,
                                              p_dentry-&amp;gt;d_inode-&amp;gt;i_generation);
                        snprintf(fidbuf, sizeof(fidbuf), DFID, PFID(&amp;amp;fid));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Because &lt;tt&gt;oti_dev&lt;/tt&gt; is initialized to NULL, then the &lt;tt&gt;info-&amp;gt;oti_dev&lt;/tt&gt; check will always fail, and &lt;tt&gt;od_is_ost&lt;/tt&gt; can not be verified.&lt;/p&gt;

&lt;p&gt;Also, the &lt;tt&gt;fid_seq_is_mdt0(fid_seq(&amp;amp;fid))&lt;/tt&gt; check is always true, because &lt;tt&gt;fid.f_seq&lt;/tt&gt; is initialized to zero at the start of the function and never changed in this codepath.&lt;/p&gt;

&lt;p&gt;Is this just dead code and should be removed, or should something else be done to fix this bit of code?&lt;/p&gt;</description>
                <environment></environment>
        <key id="39592">LU-8579</key>
            <summary>oti_dev is never set, but is used</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="yong.fan">nasf</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Sep 2016 22:06:48 +0000</created>
                <updated>Thu, 29 Sep 2016 16:04:46 +0000</updated>
                            <resolved>Thu, 29 Sep 2016 16:04:46 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="164869" author="adilger" created="Fri, 2 Sep 2016 22:09:38 +0000"  >&lt;p&gt;Attached is the part of &lt;a href=&quot;http://review.whamcloud.com/19865&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19865&lt;/a&gt; that related to this issue that can be used when fixing this issue.&lt;/p&gt;</comment>
                            <comment id="164887" author="gerrit" created="Sun, 4 Sep 2016 08:21:42 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/22307&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/22307&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8579&quot; title=&quot;oti_dev is never set, but is used&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8579&quot;&gt;&lt;del&gt;LU-8579&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: code cleanup for osd_ldiskfs_add_entry&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8c0f67871bea7f74dd1ca24e5e6079da8a6b3915&lt;/p&gt;</comment>
                            <comment id="167741" author="gerrit" created="Thu, 29 Sep 2016 15:00:30 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/22307/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/22307/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8579&quot; title=&quot;oti_dev is never set, but is used&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8579&quot;&gt;&lt;del&gt;LU-8579&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: code cleanup for osd_ldiskfs_add_entry&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3ed0a4a64642751931fcc397511c4a118e3d1a51&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="22940" name="remove-oti_dev.diff" size="2593" author="adilger" created="Fri, 2 Sep 2016 22:09:38 +0000"/>
                    </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|hzync7:</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>