<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:44:43 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-11536] ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS</title>
                <link>https://jira.whamcloud.com/browse/LU-11536</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;During code analysis I found that&#160;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6401&quot; title=&quot;Untangle lustre userland and kernel headers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6401&quot;&gt;&lt;del&gt;LU-6401&lt;/del&gt;&lt;/a&gt; brakes ENOSPC handling logic in OSP.&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;osp_precreate_send()&lt;/tt&gt; returns&#160;&lt;tt&gt;-ESTALE&lt;/tt&gt; when OST can&apos;t precreate objects i.e. &lt;tt&gt;-ENOSPACE&lt;/tt&gt;:&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;        if (osp_fid_diff(fid, &amp;amp;d-&amp;gt;opd_pre_used_fid) &amp;lt;= 0) {
                CERROR(&quot;%s: precreate fid &quot;DFID&quot; &amp;lt; local used fid &quot;DFID&quot;: rc = %d\n&quot;, d-&amp;gt;opd_obd-&amp;gt;obd_name,
                       PFID(fid), PFID(&amp;amp;d-&amp;gt;opd_pre_used_fid), -ESTALE);
                GOTO(out_req, rc = -ESTALE);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However it is not correct. In case of &lt;tt&gt;-ENOSPC&lt;/tt&gt; on OST, MDS should get &lt;tt&gt;-ENOSPC&lt;/tt&gt;.&lt;br/&gt;
 For example &lt;tt&gt;osp_precreat_reserve()&lt;/tt&gt; forces local commit to release space and waits for &lt;tt&gt;OBD_TIMEOUT&lt;/tt&gt;. &lt;br/&gt;
 I think &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6401&quot; title=&quot;Untangle lustre userland and kernel headers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6401&quot;&gt;&lt;del&gt;LU-6401&lt;/del&gt;&lt;/a&gt; uapi: fix up lustre_ostid.h and lustre_fid.h&quot;&lt;/tt&gt; broke this logic:&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;@@ -1781,7 +1781,7 @@ static int ofd_create_hdl(struct tgt_session_info *tsi)
                         granted = 0;
                 }
 
-                ostid_set_id(&amp;amp;rep_oa-&amp;gt;o_oi, ofd_seq_last_oid(oseq));
+                rc = ostid_set_id(&amp;amp;rep_oa-&amp;gt;o_oi, ofd_seq_last_oid(oseq));
         }
         EXIT;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;After the patch OST returns 0 in case when &lt;tt&gt;osp_precreate_objects()&lt;/tt&gt; returns &lt;tt&gt;-ENOSPC&lt;/tt&gt;.&lt;br/&gt;
 &#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="53629">LU-11536</key>
            <summary>ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS</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="scherementsev">Sergey Cheremencev</assignee>
                                    <reporter username="scherementsev">Sergey Cheremencev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Oct 2018 14:06:53 +0000</created>
                <updated>Fri, 3 Sep 2021 06:58:05 +0000</updated>
                            <resolved>Mon, 12 Nov 2018 10:55:31 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="235041" author="gerrit" created="Wed, 17 Oct 2018 14:10:51 +0000"  >&lt;p&gt;Sergey Cheremencev (c17829@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33390&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33390&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11536&quot; title=&quot;ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11536&quot;&gt;&lt;del&gt;LU-11536&lt;/del&gt;&lt;/a&gt; ofd: ofd_create_hdl may return 0 in case of ENOSPC&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6730d70e44daa6697cec861b7e37571eecb323a6&lt;/p&gt;</comment>
                            <comment id="236200" author="gerrit" created="Fri, 2 Nov 2018 07:17:21 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33390/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33390/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11536&quot; title=&quot;ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11536&quot;&gt;&lt;del&gt;LU-11536&lt;/del&gt;&lt;/a&gt; ofd: ofd_create_hdl may return 0 in case of ENOSPC&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1f97bb8e7236971aaf3029fe3699db9baf721da1&lt;/p&gt;</comment>
                            <comment id="236843" author="pjones" created="Mon, 12 Nov 2018 10:55:31 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="239499" author="gerrit" created="Mon, 7 Jan 2019 21:47:48 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33978&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33978&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11536&quot; title=&quot;ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11536&quot;&gt;&lt;del&gt;LU-11536&lt;/del&gt;&lt;/a&gt; ofd: ofd_create_hdl may return 0 in case of ENOSPC&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2c94faf22b1f0dca526e9e7f489cec01cbffa10c&lt;/p&gt;</comment>
                            <comment id="240104" author="gerrit" created="Wed, 16 Jan 2019 07:31:10 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33978/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33978/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11536&quot; title=&quot;ofd_create_hdl returns 0 instead of ENOSPC causing ESTALE on MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11536&quot;&gt;&lt;del&gt;LU-11536&lt;/del&gt;&lt;/a&gt; ofd: ofd_create_hdl may return 0 in case of ENOSPC&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 496ddb5b99394142bc158b3f8b0149bcb6b6eae0&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="53865">LU-11588</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i004dr:</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>