<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:35:12 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-17408] Calling &quot;lfs setquota&quot; during a barrier_freeze causes subsequent barrier_freeze to fail</title>
                <link>https://jira.whamcloud.com/browse/LU-17408</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If a &quot;lfs setquota&quot; command is run on a mounted filesystem when a barrier_freeze has been placed, then subsequent barrier_freeze commands fail.&lt;/p&gt;

&lt;p&gt;The issue seems to be in the mdt_quotactl where the order of the barrier apis are reversed - &lt;a href=&quot;https://git.whamcloud.com/?p=fs/lustre-release.git;a=blob;f=lustre/mdt/mdt_handler.c;h=1feb91a1ca4157b61092f0e3db0dde2fd188c44d;hb=HEAD#l3361&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.whamcloud.com/?p=fs/lustre-release.git;a=blob;f=lustre/mdt/mdt_handler.c;h=1feb91a1ca4157b61092f0e3db0dde2fd188c44d;hb=HEAD#l3361&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The barrier_exit is called first and then a barrier entry is called. During a barrier_freeze, the barrier_exit succeeds, but the barrier_entry fails and causes the barrier counter to go negative.&lt;/p&gt;

&lt;p&gt;The below sanity.sh test would help to recreate the issue&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;
test_801d() {
        prep_801

        # 180 seconds should be &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; enough
        do_facet mgs $LCTL barrier_freeze $FSNAME 60

        b_status=$(barrier_stat)
        [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$b_status&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-quote&quot;&gt;&apos;frozen&apos;&lt;/span&gt;&quot;&lt;/span&gt; ] ||
                error &lt;span class=&quot;code-quote&quot;&gt;&quot;(1) unexpected barrier status $b_status&quot;&lt;/span&gt;

        $LFS setquota -u 1000 -i 10000 $DIR

        sleep 5

        do_facet mgs $LCTL barrier_thaw $FSNAME
        b_status=$(barrier_stat)
        [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$b_status&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-quote&quot;&gt;&apos;thawed&apos;&lt;/span&gt;&quot;&lt;/span&gt; ] ||
                error &lt;span class=&quot;code-quote&quot;&gt;&quot;(2) unexpected barrier status $b_status&quot;&lt;/span&gt;

        # Should be able to freeze again
        do_facet mgs $LCTL barrier_freeze $FSNAME 30
        b_status=$(barrier_stat)
        [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$b_status&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-quote&quot;&gt;&apos;frozen&apos;&lt;/span&gt;&quot;&lt;/span&gt; ] ||
                error &lt;span class=&quot;code-quote&quot;&gt;&quot;(3) unexpected barrier status $b_status&quot;&lt;/span&gt;

        do_facet mgs $LCTL barrier_thaw $FSNAME
        b_status=$(barrier_stat)
        [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$b_status&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-quote&quot;&gt;&apos;thawed&apos;&lt;/span&gt;&quot;&lt;/span&gt; ] ||
                error &lt;span class=&quot;code-quote&quot;&gt;&quot;(2) unexpected barrier status $b_status&quot;&lt;/span&gt;
        post_801
}
run_test 801d &lt;span class=&quot;code-quote&quot;&gt;&quot;Barrier freeze with setquota&quot;&lt;/span&gt; &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="79887">LU-17408</key>
            <summary>Calling &quot;lfs setquota&quot; during a barrier_freeze causes subsequent barrier_freeze to fail</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="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="Jegatheesan">Jeya Ganesh Babu Jegatheesan</assignee>
                                    <reporter username="Jegatheesan">Jeya Ganesh Babu Jegatheesan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Jan 2024 04:56:13 +0000</created>
                <updated>Wed, 17 Jan 2024 22:22:45 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="400110" author="gerrit" created="Wed, 17 Jan 2024 22:16:25 +0000"  >&lt;p&gt;&quot;Jeya ganesh babu &amp;lt;jeyaga@amazon.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53722&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53722&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17408&quot; title=&quot;Calling &amp;quot;lfs setquota&amp;quot; during a barrier_freeze causes subsequent barrier_freeze to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17408&quot;&gt;LU-17408&lt;/a&gt; mdt: Fix the order of barrier calls&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: da93eaeccbbeb109aabf9a71ef167388e1783994&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|i046tz:</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>