<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:07 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-7927] Deadlock between ll_setattr() and ll_file_write()-&gt;ll_fsync()</title>
                <link>https://jira.whamcloud.com/browse/LU-7927</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;commit 85bd36cc69563d7a79e3ed34f8fadb4ed1a72b7c
Author: Henri Doreau &amp;lt;henri.doreau@cea.fr&amp;gt;
Date:   Fri Apr 18 16:17:01 2014 +0200

    LU-4840 lfs: Use file lease to implement migration
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;moves lli_trunc_sem into vvp layer.&lt;br/&gt;
It violates lli_trunc_sem/i_mutex locking order.  &lt;/p&gt;

&lt;p&gt;So i_mutex sholud be taken after lli_trunc_sem now.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35625">LU-7927</key>
            <summary>Deadlock between ll_setattr() and ll_file_write()-&gt;ll_fsync()</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="wc-triage">WC Triage</assignee>
                                    <reporter username="askulysh">Andriy Skulysh</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 28 Mar 2016 09:13:39 +0000</created>
                <updated>Fri, 2 Sep 2016 04:39:39 +0000</updated>
                            <resolved>Fri, 2 Sep 2016 04:39:39 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="147015" author="gerrit" created="Mon, 28 Mar 2016 09:16:33 +0000"  >&lt;p&gt;Andriy Skulysh (andriy.skulysh@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/19165&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19165&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7927&quot; title=&quot;Deadlock between ll_setattr() and ll_file_write()-&amp;gt;ll_fsync()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7927&quot;&gt;&lt;del&gt;LU-7927&lt;/del&gt;&lt;/a&gt; llite: Deadlock between ll_setattr and write/ll_fsync&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5cd324bc8c3adac656fd65a4d30e0ae3d48dfc7d&lt;/p&gt;</comment>
                            <comment id="147156" author="bobijam" created="Tue, 29 Mar 2016 07:16:30 +0000"  >&lt;p&gt;Can you elaborate what calling path takes lli_trunc_sem before i_mutex?&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;ll_fsync()-&amp;gt;[takes i_mutex]-&amp;gt;cl_sync_file_range()-&amp;gt;vvp_io_fsync_start() =&amp;gt; (returns to ll_fsync()) [put down i_mutex]   * no lli_trunc_sem is involved *
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="147157" author="askulysh" created="Tue, 29 Mar 2016 07:41:35 +0000"  >&lt;p&gt;lli_trunc_sem was taken in vvp_io_write_start().&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;  [ffff8817eb705bd8] schedule_preempt_disabled at ffffffff81495629
   [ffff8817eb705be8] __mutex_lock_slowpath at ffffffff814961ab
   [ffff8817eb705c40] mutex_lock at ffffffff814962a7
   [ffff8817eb705c58] ll_fsync at ffffffffa089f8b4 [lustre]
   [ffff8817eb705cb0] generic_write_sync at ffffffff811afead
   [ffff8817eb705cc0] vvp_io_write_start at ffffffffa08f81dd [lustre]
   [ffff8817eb705cd0] cl_lock_request at ffffffffa05260c7 [obdclass]
   [ffff8817eb705d20] cl_io_start at ffffffffa0528015 [obdclass]
   [ffff8817eb705d48] cl_io_loop at ffffffffa052b605 [obdclass]
   [ffff8817eb705d78] ll_file_io_generic at ffffffffa08948da [lustre]
   [ffff8817eb705e60] ll_file_aio_write at ffffffffa089507c [lustre]
   [ffff8817eb705eb0] ll_file_write at ffffffffa089579b [lustre]
   [ffff8817eb705f00] vfs_write at ffffffff811823bd
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and &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;  #0 [ffff8818a20c1b58] schedule at ffffffff81494c75
  #1 [ffff8818a20c1bd8] rwsem_down_write_failed at ffffffff81496c85
  #2 [ffff8818a20c1c50] call_rwsem_down_write_failed at ffffffff8126cc23
  #3 [ffff8818a20c1ca0] vvp_io_setattr_start at ffffffffa08f4cd9 [lustre]
  #4 [ffff8818a20c1ce0] cl_io_start at ffffffffa0528015 [obdclass]
  #5 [ffff8818a20c1d08] cl_io_loop at ffffffffa052b605 [obdclass]
  #6 [ffff8818a20c1d38] cl_setattr_ost at ffffffffa08ef250 [lustre]
  #7 [ffff8818a20c1d80] ll_setattr_raw at ffffffffa08c2009 [lustre]
  #8 [ffff8818a20c1e68] ll_setattr at ffffffffa08c2313 [lustre]
  #9 [ffff8818a20c1e78] notify_change at ffffffff8119d371
 #10 [ffff8818a20c1eb8] do_truncate at ffffffff811805dd
 #11 [ffff8818a20c1f28] do_sys_ftruncate.constprop.20 at ffffffff8118092b
 #12 [ffff8818a20c1f70] sys_ftruncate at ffffffff811809be
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="147158" author="bobijam" created="Tue, 29 Mar 2016 07:48:56 +0000"  >&lt;p&gt;thank you.&lt;/p&gt;</comment>
                            <comment id="147750" author="paf" created="Mon, 4 Apr 2016 18:27:16 +0000"  >&lt;p&gt;After adding this patch, we see &lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-7981&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-7981&lt;/a&gt;.  However, I feel &lt;b&gt;strongly&lt;/b&gt; that this patch did not cause that bug, it just exposed it.  I think that&apos;s very clear from the code.  I&apos;m about to post a fix for that new deadlock in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7981&quot; title=&quot;double read of lli_trunc_sem in ll_page_mkwrite and vvp_io_fault_start leads to deadlock&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7981&quot;&gt;&lt;del&gt;LU-7981&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="164736" author="gerrit" created="Fri, 2 Sep 2016 02:22:39 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/19165/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19165/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7927&quot; title=&quot;Deadlock between ll_setattr() and ll_file_write()-&amp;gt;ll_fsync()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7927&quot;&gt;&lt;del&gt;LU-7927&lt;/del&gt;&lt;/a&gt; llite: Deadlock between ll_setattr and write/ll_fsync&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5d60fd75152d10d699ce6e1cc128f12aa6cc86a6&lt;/p&gt;</comment>
                            <comment id="164762" author="pjones" created="Fri, 2 Sep 2016 04:39:39 +0000"  >&lt;p&gt;Landed for 2.9&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|hzy5t3:</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>