<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:42:13 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-4381] clio deadlock from truncate</title>
                <link>https://jira.whamcloud.com/browse/LU-4381</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If I run the following:&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;# export OSTCOUNT=6
# export MOUNT_2=y
# ./lustre/tests/llmount.sh
# lfs setstripe -c 6 /mnt/lustre/f0
# 
# (while true; do echo Hi &amp;gt; /mnt/lustre/f0; done) &amp;amp;
# (while true; do echo Bye &amp;gt; /mnt/lustre2/f0; done) &amp;amp;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then within a second of starting, both child tasks get stuck in cl_lock_state_wait()&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;[&amp;lt;ffffffffa045cb75&amp;gt;] cl_lock_state_wait+0x1b5/0x320 [obdclass]
[&amp;lt;ffffffffa045d35b&amp;gt;] cl_enqueue_locked+0x15b/0x1f0 [obdclass]
[&amp;lt;ffffffffa045debe&amp;gt;] cl_lock_request+0x7e/0x270 [obdclass]
[&amp;lt;ffffffffa0462e4c&amp;gt;] cl_io_lock+0x3cc/0x560 [obdclass]
[&amp;lt;ffffffffa0463082&amp;gt;] cl_io_loop+0xa2/0x1b0 [obdclass]
[&amp;lt;ffffffffa0dcabe8&amp;gt;] cl_setattr_ost+0x218/0x2f0 [lustre]
[&amp;lt;ffffffffa0d96145&amp;gt;] ll_setattr_raw+0xa45/0x10c0 [lustre]
[&amp;lt;ffffffffa0d9681d&amp;gt;] ll_setattr+0x5d/0xf0 [lustre]
[&amp;lt;ffffffff811a0048&amp;gt;] notify_change+0x168/0x340
[&amp;lt;ffffffff81180ad4&amp;gt;] do_truncate+0x64/0xa0
[&amp;lt;ffffffff811949e1&amp;gt;] do_filp_open+0x851/0xdc0
[&amp;lt;ffffffff8117f849&amp;gt;] do_sys_open+0x69/0x140
[&amp;lt;ffffffff8117f960&amp;gt;] sys_open+0x20/0x30
[&amp;lt;ffffffff8100b072&amp;gt;] system_call_fastpath+0x16/0x1b
[&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;They stay stuck there until one client gets evicted by an OST:&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;LustreError: 0:0:(ldlm_lockd.c:344:waiting_locks_callback()) ### lock callback timer expired after 151s: evicting client at 0@lo  ns: filter-lustre-OST0002_UUID lock: ffff880217559100/0xb06606e6f58bd625 lrc: 3/0,0 mode: PW/PW res: [0x2:0x0:0x0].0 rrc: 2 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x60000080010020 nid: 0@lo remote: 0xb06606e6f58bd61e expref: 4 pid: 14479 timeout: 4300627190 lvb_type: 0
LustreError: 0:0:(ldlm_lockd.c:344:waiting_locks_callback()) ### lock callback timer expired after 151s: evicting client at 0@lo  ns: filter-lustre-OST0004_UUID lock: ffff88019996f9c0/0xb06606e6f58bd58b lrc: 3/0,0 mode: PW/PW res: [0x2:0x0:0x0].0 rrc: 2 type: EXT [0-&amp;gt;18446744073709551615] (req 0-&amp;gt;18446744073709551615) flags: 0x60000080010020 nid: 0@lo remote: 0xb06606e6f58bd584 expref: 4 pid: 13781 timeout: 4300627191 lvb_type: 0
LustreError: 11-0: lustre-OST0002-osc-ffff8801a13eb800: Communicating with 0@lo, operation obd_ping failed with -107.
Lustre: lustre-OST0004-osc-ffff88019e033800: Connection to lustre-OST0004 (at 0@lo) was lost; in progress operations using this service will wait for recovery to complete
LustreError: 167-0: lustre-OST0004-osc-ffff88019e033800: This client was evicted by lustre-OST0004; in progress operations using this service will fail.
LustreError: 16413:0:(ldlm_resource.c:815:ldlm_resource_complain()) lustre-OST0004-osc-ffff88019e033800: namespace resource [0x2:0x0:0x0].0 (ffff8801a86f6980) refcount nonzero (1) after lock cleanup; forcing cleanup.
LustreError: 16413:0:(ldlm_resource.c:1454:ldlm_resource_dump()) --- Resource: [0x2:0x0:0x0].0 (ffff8801a86f6980) refcount = 2
Lustre: lustre-OST0004-osc-ffff88019e033800: Connection restored to lustre-OST0004 (at 0@lo)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="22449">LU-4381</key>
            <summary>clio deadlock from truncate</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>clio</label>
                            <label>mn4</label>
                    </labels>
                <created>Thu, 12 Dec 2013 21:05:59 +0000</created>
                <updated>Fri, 5 Sep 2014 13:35:35 +0000</updated>
                            <resolved>Wed, 9 Apr 2014 20:36:31 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="73506" author="jhammond" created="Fri, 13 Dec 2013 20:02:25 +0000"  >&lt;p&gt;I should have mentioned that I don&apos;t see this hang when the file is created with stripe count 1.&lt;/p&gt;</comment>
                            <comment id="73778" author="adilger" created="Wed, 18 Dec 2013 18:37:10 +0000"  >&lt;p&gt;Jinshan, Bobijam, would this problem be fixed by the cl_lock removal?&lt;/p&gt;</comment>
                            <comment id="73824" author="jay" created="Thu, 19 Dec 2013 04:09:39 +0000"  >&lt;p&gt;very likely. I&apos;ll keep in mind to run this test case with new cl_lock implementation&lt;/p&gt;</comment>
                            <comment id="81172" author="paf" created="Tue, 8 Apr 2014 14:32:36 +0000"  >&lt;p&gt;With this patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/9152/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9152/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;landed, can this bug be closed?&lt;/p&gt;

&lt;p&gt;Also, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4495&quot; title=&quot;client evicted on parallel append write to the shared file.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4495&quot;&gt;&lt;del&gt;LU-4495&lt;/del&gt;&lt;/a&gt; is a duplicate of this bug.  I originally thought there was a difference between these two, but it seems to be exactly the same.&lt;/p&gt;</comment>
                            <comment id="81321" author="jay" created="Wed, 9 Apr 2014 20:36:31 +0000"  >&lt;p&gt;indeed. Closed&lt;/p&gt;</comment>
                            <comment id="81854" author="bogl" created="Thu, 17 Apr 2014 17:33:51 +0000"  >&lt;p&gt;backport to b2_5&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/9994&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9994&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="93313" author="bfaccini" created="Fri, 5 Sep 2014 13:35:35 +0000"  >&lt;p&gt;backport to b2_4 is at &lt;a href=&quot;http://review.whamcloud.com/11632&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11632&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="22758">LU-4495</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|hzwbb3:</customfieldvalue>

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