<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:57:40 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-6146] LFSCK fall into wait for ever because of race condition when check/set cfs_fail_val</title>
                <link>https://jira.whamcloud.com/browse/LU-6146</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There is race condition in LFSCK when inject failure stub for test. For example:&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; 764                 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (OBD_FAIL_CHECK(OBD_FAIL_LFSCK_DELAY2) &amp;amp;&amp;amp;
 765                     cfs_fail_val &amp;gt; 0) {
 766                         struct l_wait_info lwi;
 767 
 768                         lwi = LWI_TIMEOUT(cfs_time_seconds(cfs_fail_val),
 769                                           NULL, NULL);
 770                         l_wait_event(thread-&amp;gt;t_ctl_waitq,
 771                                      !thread_is_running(thread),
 772                                      &amp;amp;lwi);
 773 
 774                         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(!thread_is_running(thread))) {
 775                                 CDEBUG(D_LFSCK, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: scan dir exit &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; engine &quot;&lt;/span&gt;
 776                                        &lt;span class=&quot;code-quote&quot;&gt;&quot;stop, parent &quot;&lt;/span&gt;DFID&lt;span class=&quot;code-quote&quot;&gt;&quot;, cookie &quot;&lt;/span&gt;LPX64&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;,
 777                                        lfsck_lfsck2name(lfsck),
 778                                        PFID(lfsck_dto2fid(dir)),
 779                                        lfsck-&amp;gt;li_cookie_dir);
 780                                 RETURN(0);
 781                         }
 782                 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &quot;cfs_fail_val&quot; may be changed by others after the check at line 765 but before using it at line 768. Then the LFSCK engine will fall into &quot;wait&quot; until someone run &quot;lfsck_stop&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="28296">LU-6146</key>
            <summary>LFSCK fall into wait for ever because of race condition when check/set cfs_fail_val</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="yong.fan">nasf</reporter>
                        <labels>
                            <label>HB</label>
                    </labels>
                <created>Wed, 21 Jan 2015 13:09:52 +0000</created>
                <updated>Sun, 25 Jan 2015 02:53:21 +0000</updated>
                            <resolved>Sun, 25 Jan 2015 02:53:21 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="104165" author="gerrit" created="Wed, 21 Jan 2015 13:43:44 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13481&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13481&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6146&quot; title=&quot;LFSCK fall into wait for ever because of race condition when check/set cfs_fail_val&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6146&quot;&gt;&lt;del&gt;LU-6146&lt;/del&gt;&lt;/a&gt; tests: race condition for check/use cfs_fail_val&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 868327e31d2d3c5b4aaaeb5a18aad34cc5e27b79&lt;/p&gt;</comment>
                            <comment id="104166" author="yong.fan" created="Wed, 21 Jan 2015 13:45:49 +0000"  >&lt;p&gt;This issue may cause many sanity-lfsck test failures, so we have to resolve it before Lustre-2.7 released.&lt;/p&gt;</comment>
                            <comment id="104222" author="adilger" created="Wed, 21 Jan 2015 18:14:30 +0000"  >&lt;p&gt;I don&apos;t see any tests in Maloo that have been marked with this bug. I do see a late number of test failures due to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5121&quot; title=&quot;replay-ost-single test_0b: OOM on the OST&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5121&quot;&gt;&lt;del&gt;LU-5121&lt;/del&gt;&lt;/a&gt; that are not related to interop testing. Is this bug related to that?&lt;/p&gt;</comment>
                            <comment id="104463" author="yong.fan" created="Fri, 23 Jan 2015 03:36:05 +0000"  >&lt;p&gt;Recently, there are many failure instances for sanity-lfsck test_4, part of them are because of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6109&quot; title=&quot;LFSCK gets &amp;quot;inconsistent&amp;quot; flag and won&amp;#39;t stop&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6109&quot;&gt;&lt;del&gt;LU-6109&lt;/del&gt;&lt;/a&gt;/&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6147&quot; title=&quot;sanity-lfsck test_4: &amp;#39;(7) unexpected status&amp;#39; &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6147&quot;&gt;&lt;del&gt;LU-6147&lt;/del&gt;&lt;/a&gt;, the others are because of this ticket.&lt;/p&gt;</comment>
                            <comment id="104623" author="gerrit" created="Sun, 25 Jan 2015 01:53:26 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13481/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13481/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6146&quot; title=&quot;LFSCK fall into wait for ever because of race condition when check/set cfs_fail_val&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6146&quot;&gt;&lt;del&gt;LU-6146&lt;/del&gt;&lt;/a&gt; tests: race condition for check/use cfs_fail_val&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f6ef1b797f2f6b28e7c5860b6cf16759cadfc9a4&lt;/p&gt;</comment>
                            <comment id="104626" author="pjones" created="Sun, 25 Jan 2015 02:53:21 +0000"  >&lt;p&gt;Landed for 2.7&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|hzx4k7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>17159</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>