<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:13:15 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-14842] remove use of small variables from *_thread_info</title>
                <link>https://jira.whamcloud.com/browse/LU-14842</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The use of variables like &quot;&lt;tt&gt;osd_thread_info-&amp;gt;oti_id&lt;/tt&gt;&quot; is pointless.  This is an 8-byte variable that is reused across multiple RPCs, but then an on-stack 8-byte pointer &quot;&lt;tt&gt;struct osd_id *id&lt;/tt&gt;&quot; is used to access it, so there is no stack savings at all.  I would rather just declare:&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;
        struct ost_id id = { 0 };
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;on the stack and remove the use of &lt;tt&gt;oti_id&lt;/tt&gt; completely.&lt;/p&gt;

&lt;p&gt;We need a separate series of patches that remove the use of &quot;oti_id/2/3&quot;, &quot;oti_fid/2/3&quot;, &quot;oti_time&quot;, and any other 8- or 16-byte variables from osd_thread_info, mdd_thread_info, mdt_thread_info, etc.&lt;/p&gt;

&lt;p&gt;The use of the &lt;tt&gt;&amp;#42;_thread_info&lt;/tt&gt; was meant to avoid repeated large memory allocations and large on-stack allocations, when there was a crazy kernel push to have 4KB stacks, but these small variables were also added for maximal stack savings.  Now that 64-bit kernels have 16KB stacks we don&apos;t need them.&lt;/p&gt;

&lt;p&gt;These &lt;tt&gt;&amp;#42;_thread_info&lt;/tt&gt; variables should not be used for passing hidden values between functions, but if they are it is something that we should also know about, and fix the functions to pass the variables directly as arguments.&lt;/p&gt;</description>
                <environment></environment>
        <key id="65189">LU-14842</key>
            <summary>remove use of small variables from *_thread_info</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="hongchao.zhang">Hongchao Zhang</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Mon, 12 Jul 2021 17:58:27 +0000</created>
                <updated>Fri, 16 Jul 2021 09:00:16 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="307536" author="gerrit" created="Fri, 16 Jul 2021 09:00:16 +0000"  >&lt;p&gt;Hongchao Zhang (hongchao@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44330&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44330&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14842&quot; title=&quot;remove use of small variables from *_thread_info&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14842&quot;&gt;LU-14842&lt;/a&gt; osd: remove small vars from osd_thread_info&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 89b09f538224dd125d48a19b7062107822ab04fe&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="65032">LU-14831</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|i01z2f:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>