<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:29 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-7853] Fixes bitfield in lod qos code</title>
                <link>https://jira.whamcloud.com/browse/LU-7853</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Replaced bitfields viz. lq_dirty, lq_same_space, and lq_reset to named bits and use atomic functions. As those are more safe.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35183">LU-7853</key>
            <summary>Fixes bitfield in lod qos code</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="yujian">Jian Yu</assignee>
                                    <reporter username="520557">Rahul Deshmukh</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 7 Mar 2016 17:28:10 +0000</created>
                <updated>Thu, 15 Jul 2021 20:57:03 +0000</updated>
                            <resolved>Fri, 26 Feb 2021 21:15:24 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="144772" author="gerrit" created="Mon, 7 Mar 2016 17:48:42 +0000"  >&lt;p&gt;Rahul Deshmukh (rahul.deshmukh@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18812&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18812&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7853&quot; title=&quot;Fixes bitfield in lod qos code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7853&quot;&gt;&lt;del&gt;LU-7853&lt;/del&gt;&lt;/a&gt; lod: Fixes bitfield in lod qos code&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3f153f8b4a365b801934d1de843389e4e51a90c8&lt;/p&gt;</comment>
                            <comment id="144794" author="green" created="Mon, 7 Mar 2016 18:43:08 +0000"  >&lt;p&gt;So were tyou hittign any real problems with the code that you feel you needed the atomic bit operations?&lt;/p&gt;</comment>
                            <comment id="144838" author="520557" created="Tue, 8 Mar 2016 02:24:07 +0000"  >&lt;p&gt;Yes, problem was hit on older code i.e. version 2.5 and it was seen for lq_dirty. So as a fixed other bitfield with those. Actually lq_dirty is not present in latest code but still to be safer side ported this patch.&lt;/p&gt;</comment>
                            <comment id="180924" author="adilger" created="Mon, 16 Jan 2017 23:34:18 +0000"  >&lt;p&gt;I agree with Oleg that &quot;more safe&quot; doesn&apos;t provide justification for landing the patch.  I can imagine that there is some problem with these bitfields in the code, though it seems &lt;tt&gt;lq_rw_sem&lt;/tt&gt; is held when &lt;tt&gt;lq_dirty&lt;/tt&gt; and &lt;tt&gt;lq_same_space&lt;/tt&gt; are accessed and modified, except in &lt;tt&gt;lod_qos_priofree_seq_write()&lt;/tt&gt; and &lt;tt&gt;lod_qos_thresholdrr_seq_write()&lt;/tt&gt;.  Since there is already a lock protecting all of these accesses, adding atomic bit operations is just overhead unless there is a reason to do so.&lt;/p&gt;

&lt;p&gt;Please provide more details about the original bug so there is justification for the patch to be landed.&lt;/p&gt;</comment>
                            <comment id="240526" author="zam" created="Tue, 22 Jan 2019 14:32:33 +0000"  >&lt;p&gt;Andreas, there was an old crash with &quot;ASSERTION( lov-&amp;gt;lov_qos.lq_statfs_in_progress )&quot; failure:&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;Oct 11 01:24:25 lus207n03 kernel: LustreError: 140684:0:(lov_qos.c:1136:qos_statfs_done()) ASSERTION( lov-&amp;gt;lov_qos.lq_statfs_in_progress ) failed:
Oct 11 01:24:25 lus207n03 kernel: LustreError: 140684:0:(lov_qos.c:1136:qos_statfs_done()) LBUG
Oct 11 01:24:25 lus207n03 kernel: Pid: 140684, comm: ptlrpcd
Oct 11 01:24:25 lus207n03 kernel:
Oct 11 01:24:25 lus207n03 kernel: Call Trace:
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa042c825&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa042ce27&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa0a56829&amp;gt;] qos_statfs_done+0x89/0x90 [lov]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa0a4a166&amp;gt;] cb_statfs_update+0x346/0x580 [lov]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa09cdcb6&amp;gt;] osc_statfs_interpret+0xd6/0x400 [osc]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa073171b&amp;gt;] ptlrpc_check_set+0x29b/0x1d50 [ptlrpc]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff814eaf6a&amp;gt;] ? schedule_timeout+0x19a/0x2e0
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff8107c180&amp;gt;] ? process_timeout+0x0/0x10
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa07636b0&amp;gt;] ptlrpcd_check+0x1a0/0x230 [ptlrpc]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa0763a43&amp;gt;] ptlrpcd+0x303/0x370 [ptlrpc]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff8105f9f0&amp;gt;] ? default_wake_function+0x0/0x20
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffffa0763740&amp;gt;] ? ptlrpcd+0x0/0x370 [ptlrpc]
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff81090806&amp;gt;] kthread+0x96/0xa0
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff8100c14a&amp;gt;] child_rip+0xa/0x20
Oct 11 01:24:25 lus207n03 kernel:  [&amp;lt;ffffffff81090770&amp;gt;] ? kthread+0x0/0xa0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;however the assertion doesn&apos;t exist in recent Lustre code. a wrong update of bitfield flags still possible due to an unprotected access through lod_qos_thresholdrr_seq_write() , though w/o a crash, just some updates to&#160; lq_reset/lq_same_space can be lost.&lt;/p&gt;</comment>
                            <comment id="240554" author="adilger" created="Tue, 22 Jan 2019 18:41:28 +0000"  >&lt;p&gt;It would be good to include such explanation into the commit message of the patch, so that it is clear why it should land. &lt;/p&gt;</comment>
                            <comment id="293242" author="gerrit" created="Fri, 26 Feb 2021 20:13:35 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/18812/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/18812/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7853&quot; title=&quot;Fixes bitfield in lod qos code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7853&quot;&gt;&lt;del&gt;LU-7853&lt;/del&gt;&lt;/a&gt; lod: fixes bitfield in lod qos code&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3bae39f0a5b98a279fb5f7b8d00211ac0d09366f&lt;/p&gt;</comment>
                            <comment id="293284" author="pjones" created="Fri, 26 Feb 2021 21:15:24 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="62153">LU-14277</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|hzy3rj:</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>