<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:35: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-10503] Resource acquired to &apos;fd&apos; at line 1251 may be lost in mirror_extend_file()</title>
                <link>https://jira.whamcloud.com/browse/LU-10503</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;static int mirror_extend_file(const char *fname, const char *victim_file, enum mirror_flags mirror_flags)
{
1251		fd = open(fname, O_RDWR);
1252		if (fd &amp;lt; 0) {...}
1257	 
1258		fdv = open(victim_file, O_RDWR);
1259		if (fdv &amp;lt; 0) {...}
1264	 
1265		if (fstat(fd, &amp;amp;stbuf) || fstat(fdv, &amp;amp;stbuf_v)) {...}
1270	 
1271		if (stbuf.st_dev != stbuf_v.st_dev) {...}
1276	 
1277		/* mirrors should be of the same size */
1278		if (stbuf.st_size != stbuf_v.st_size) {...}
1283	 
1284		rc = llapi_lease_get(fd, LL_LEASE_RDLCK);
1285		if (rc &amp;lt; 0) {...}
1289	 
1290		if (!(mirror_flags &amp;amp; NO_VERIFY)) {...}
1300
1301		/* Get rid of caching pages from clients */
1302		rc = llapi_get_data_version(fd, &amp;amp;dv, LL_DV_WR_FLUSH);
1303		if (rc &amp;lt; 0) {
1304			error_loc = &quot;cannot get data version&quot;;
1305			return rc;
1306		}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;TRACEBACK&lt;/p&gt;

&lt;p&gt;An event which alters the program&apos;s state, leading to the defect	&lt;br/&gt;
lfs.c:1251: Resource is acquired: &apos;fd&apos; in the call to &apos;open&apos;&lt;/p&gt;

&lt;p&gt;An event which alters the program&apos;s state, leading to the defect	&lt;br/&gt;
lfs.c:1305: Resource is lost: &apos;fd&apos;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Resource acquired to &apos;fdv&apos; at line 1258 may be lost here.&lt;/b&gt;&lt;br/&gt;
TRACEBACK&lt;/p&gt;

&lt;p&gt;An event which alters the program&apos;s state, leading to the defect	&lt;br/&gt;
lfs.c:1258: Resource is acquired: &apos;fdv&apos; in the call to &apos;open&apos;&lt;/p&gt;

&lt;p&gt;An event which alters the program&apos;s state, leading to the defect	&lt;br/&gt;
lfs.c:1305: Resource is lost: &apos;fdv&apos;&lt;/p&gt;</description>
                <environment></environment>
        <key id="50202">LU-10503</key>
            <summary>Resource acquired to &apos;fd&apos; at line 1251 may be lost in mirror_extend_file()</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="yujian">Jian Yu</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Fri, 12 Jan 2018 12:03:38 +0000</created>
                <updated>Thu, 25 Jan 2018 05:13:55 +0000</updated>
                            <resolved>Thu, 25 Jan 2018 05:13:55 +0000</resolved>
                                                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="218482" author="gerrit" created="Thu, 18 Jan 2018 06:24:23 +0000"  >&lt;p&gt;Jian Yu (jian.yu@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30914&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30914&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10503&quot; title=&quot;Resource acquired to &amp;#39;fd&amp;#39; at line 1251 may be lost in mirror_extend_file()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10503&quot;&gt;&lt;del&gt;LU-10503&lt;/del&gt;&lt;/a&gt; flr: fix error handling in mirror_extend_file()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8e984658919b70f095eb8e8e70f3559c24b989f2&lt;/p&gt;</comment>
                            <comment id="219094" author="gerrit" created="Thu, 25 Jan 2018 04:48:17 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30914/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30914/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10503&quot; title=&quot;Resource acquired to &amp;#39;fd&amp;#39; at line 1251 may be lost in mirror_extend_file()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10503&quot;&gt;&lt;del&gt;LU-10503&lt;/del&gt;&lt;/a&gt; flr: fix error handling in mirror_extend_file()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 22d4926257cc774f514612f91a304a007dc14e63&lt;/p&gt;</comment>
                            <comment id="219120" author="pjones" created="Thu, 25 Jan 2018 05:13:55 +0000"  >&lt;p&gt;Landed for 2.11&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|hzzr1b:</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>