<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:09:42 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-14433] fallocate: osc_extent_make_ready()) ASSERTION( last_oap_count &gt; 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-14433</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After adding fallocate call to racer the following crash is observed very often:&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;
[  156.954031] LustreError: 4652:0:(osc_cache.c:1141:osc_extent_make_ready()) ASSERTION( last_oap_count &amp;gt; 0 ) failed: last_oap_count 0
[  156.956535] LustreError: 4652:0:(osc_cache.c:1141:osc_extent_make_ready()) LBUG
[  156.957881] Pid: 4652, comm: ldlm_bl_01 3.10.0-7.9-debug #1 SMP Mon Feb 1 17:33:41 EST 2021
[  156.959725] Call Trace:
[  156.960375]  [&amp;lt;ffffffffa017873c&amp;gt;] libcfs_call_trace+0x8c/0xc0 [libcfs]
[  156.962003]  [&amp;lt;ffffffffa0178a5c&amp;gt;] lbug_with_loc+0x4c/0xa0 [libcfs]
[  156.963391]  [&amp;lt;ffffffffa0839b26&amp;gt;] osc_extent_make_ready+0xb66/0xe60 [osc]
[  156.965016]  [&amp;lt;ffffffffa083c383&amp;gt;] osc_io_unplug0+0xee3/0x1900 [osc]
[  156.966261]  [&amp;lt;ffffffffa0840a60&amp;gt;] osc_cache_writeback_range+0x9a0/0xfd0 [osc]
[  156.968027]  [&amp;lt;ffffffffa082b985&amp;gt;] osc_lock_flush+0x195/0x290 [osc]
[  156.969414]  [&amp;lt;ffffffffa082be58&amp;gt;] osc_ldlm_blocking_ast+0x2f8/0x3e0 [osc]
[  156.970970]  [&amp;lt;ffffffffa05bbe54&amp;gt;] ldlm_cancel_callback+0x84/0x320 [ptlrpc]
[  156.972552]  [&amp;lt;ffffffffa05d4011&amp;gt;] ldlm_cli_cancel_local+0xd1/0x420 [ptlrpc]
[  156.974515]  [&amp;lt;ffffffffa05da24c&amp;gt;] ldlm_cli_cancel+0x10c/0x560 [ptlrpc]
[  156.976004]  [&amp;lt;ffffffffa082bcda&amp;gt;] osc_ldlm_blocking_ast+0x17a/0x3e0 [osc]
[  156.977297]  [&amp;lt;ffffffffa05e6435&amp;gt;] ldlm_handle_bl_callback+0xc5/0x3e0 [ptlrpc]
[  156.978932]  [&amp;lt;ffffffffa05e6d0f&amp;gt;] ldlm_bl_thread_main+0x5bf/0xae0 [ptlrpc]
[  156.980417]  [&amp;lt;ffffffff810ba124&amp;gt;] kthread+0xe4/0xf0
[  156.981842]  [&amp;lt;ffffffff817eee5d&amp;gt;] ret_from_fork_nospec_begin+0x7/0x21
[  156.983639]  [&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
[  156.984738] Kernel panic - not syncing: LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is result of wrong assumption about fallocate range over file range. It is done too early in &lt;tt&gt;ll_fallocate()&lt;/tt&gt; so pending write/truncate may change file size and fallocate could change file size wrongly&lt;/p&gt;</description>
                <environment></environment>
        <key id="62886">LU-14433</key>
            <summary>fallocate: osc_extent_make_ready()) ASSERTION( last_oap_count &gt; 0 ) failed</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="tappro">Mikhail Pershin</assignee>
                                    <reporter username="tappro">Mikhail Pershin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Feb 2021 12:22:14 +0000</created>
                <updated>Thu, 16 Jun 2022 20:55:47 +0000</updated>
                            <resolved>Wed, 21 Apr 2021 04:01:32 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="291986" author="gerrit" created="Mon, 15 Feb 2021 12:44:04 +0000"  >&lt;p&gt;Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41668&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41668&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14433&quot; title=&quot;fallocate: osc_extent_make_ready()) ASSERTION( last_oap_count &amp;gt; 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14433&quot;&gt;&lt;del&gt;LU-14433&lt;/del&gt;&lt;/a&gt; llite: do fallocate() size checks under lock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9ad2c55f863755452e74a3e72a10886c6a978bcf&lt;/p&gt;</comment>
                            <comment id="299350" author="gerrit" created="Wed, 21 Apr 2021 03:14:55 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41668/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41668/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14433&quot; title=&quot;fallocate: osc_extent_make_ready()) ASSERTION( last_oap_count &amp;gt; 0 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14433&quot;&gt;&lt;del&gt;LU-14433&lt;/del&gt;&lt;/a&gt; llite: do fallocate() size checks under lock&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f23ac22c4c79750fed6b05ddbe460bfc9b0f0ea5&lt;/p&gt;</comment>
                            <comment id="299366" author="pjones" created="Wed, 21 Apr 2021 04:01:32 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="62191">LU-14287</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|i01mnr:</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>