<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:24:11 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-9210] &apos;ls&apos; hung because of statahead delay</title>
                <link>https://jira.whamcloud.com/browse/LU-9210</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;Our main problem is that sometimes ls -l takes a long time to answer as shown below.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;sh-5-34 ~&amp;#93;&lt;/span&gt;$ alias ls&lt;br/&gt;
alias ls=&apos;ls --color=auto&apos;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;sh-5-34 ~&amp;#93;&lt;/span&gt;$ echo $GROUP&lt;br/&gt;
/groups/alice&lt;/p&gt;

&lt;p&gt;Sometimes ls takes 30 seconds to 1 minute:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;sthiell@sh-5-34 ~&amp;#93;&lt;/span&gt;$ time ls $GROUP&lt;br/&gt;
addiso  feel_free_to_test  foobar  pictures  preese-dir  software  some_group_datadir  vmd-1.9.2&lt;br/&gt;
real 0m30.012s&lt;br/&gt;
user 0m0.001s&lt;br/&gt;
sys 0m0.004s&lt;/p&gt;

&lt;p&gt;    Note 1: when I enable lustre debugging on the client, I cannot reproduce the issue, which is a bit annoying for the bug report.&lt;br/&gt;
    Note 2: when I set statahead_max to 0 the problem is gone, and is easily seen as soon as I re-enable statahead_max (set to 1 or more)&lt;br/&gt;
    Note 3: it&#8217;s also very difficult to reproduce the issue when using ls with strace, but I have seen one time that ls was blocking in lstat()&lt;/p&gt;

&lt;p&gt;The relevant part of the log is as below:&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;00000080:00400000:3.0:1489184551.164004:0:25907:0:(statahead.c:683:ll_statahead_interpret()) sa_entry software rc -13
00000080:00400000:0.0:1489184581.163471:0:25086:0:(statahead.c:1666:ll_statahead()) revalidate statahead software: -11.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Obviously statahead failure didn&apos;t notify &apos;ls&apos; process in time, and cause it slow.&lt;/p&gt;</description>
                <environment></environment>
        <key id="44713">LU-9210</key>
            <summary>&apos;ls&apos; hung because of statahead delay</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="laisiyao">Lai Siyao</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Mar 2017 06:34:06 +0000</created>
                <updated>Sun, 4 Nov 2018 20:10:30 +0000</updated>
                            <resolved>Mon, 19 Jun 2017 16:34:00 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due>Fri, 31 Mar 2017 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="197580" author="gerrit" created="Tue, 30 May 2017 18:39:54 +0000"  >&lt;p&gt;Bob Glossman (bob.glossman@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27329&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27329&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9210&quot; title=&quot;&amp;#39;ls&amp;#39; hung because of statahead delay&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9210&quot;&gt;&lt;del&gt;LU-9210&lt;/del&gt;&lt;/a&gt; statahead: missing barrier before wake_up&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a291004810c0f17f0410da80238d82127b78d8d8&lt;/p&gt;</comment>
                            <comment id="197582" author="gerrit" created="Tue, 30 May 2017 18:43:04 +0000"  >&lt;p&gt;Bob Glossman (bob.glossman@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27330&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27330&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9210&quot; title=&quot;&amp;#39;ls&amp;#39; hung because of statahead delay&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9210&quot;&gt;&lt;del&gt;LU-9210&lt;/del&gt;&lt;/a&gt; statahead: missing barrier before wake_up&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1536a7b780d77fcfd11ce8e81b1ca4316a7040ad&lt;/p&gt;</comment>
                            <comment id="199609" author="gerrit" created="Mon, 19 Jun 2017 16:28:02 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/27330/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27330/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9210&quot; title=&quot;&amp;#39;ls&amp;#39; hung because of statahead delay&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9210&quot;&gt;&lt;del&gt;LU-9210&lt;/del&gt;&lt;/a&gt; statahead: missing barrier before wake_up&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d7fe5b6152d9f01f003c93cc1367455c30dc35ed&lt;/p&gt;</comment>
                            <comment id="199616" author="pjones" created="Mon, 19 Jun 2017 16:34:00 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="53912">LU-11616</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|hzz6tz:</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>