<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:12 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-7936] Resource acquired to &apos;read_fd&apos; at line 500 may be lost here.</title>
                <link>https://jira.whamcloud.com/browse/LU-7936</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;	/* Open the FIFO &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; read so that the subsequent open &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; write
	 * doesn&apos;t immediately fail. */
	read_fd = open(path, O_RDONLY | O_NONBLOCK);
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (read_fd &amp;lt; 0) {
		llapi_error(LLAPI_MSG_ERROR, errno,
			    &lt;span class=&quot;code-quote&quot;&gt;&quot;cannot open(%s) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; read&quot;&lt;/span&gt;, path);
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -errno;
	}

	/* Open the FIFO &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; writes, but don&apos;t block on waiting
	 * &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a reader. */
	llapi_hsm_event_fd = open(path, O_WRONLY | O_NONBLOCK);
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (llapi_hsm_event_fd &amp;lt; 0) {
		llapi_error(LLAPI_MSG_ERROR, errno,
			    &lt;span class=&quot;code-quote&quot;&gt;&quot;cannot open(%s) &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; write&quot;&lt;/span&gt;, path);
&lt;span class=&quot;code-comment&quot;&gt;/* !!! read_fd will be lost here !!! */&lt;/span&gt;
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -errno;
	}

	/* Now close the reader. An external monitoring process can
	 * now open the FIFO &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; reads. If no reader comes along the
	 * events are lost. NOTE: Only one reader at a time! */
	close(read_fd);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="35665">LU-7936</key>
            <summary>Resource acquired to &apos;read_fd&apos; at line 500 may be lost here.</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Tue, 29 Mar 2016 14:31:24 +0000</created>
                <updated>Mon, 11 Apr 2016 13:30:39 +0000</updated>
                            <resolved>Mon, 11 Apr 2016 12:34:47 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="147176" author="gerrit" created="Tue, 29 Mar 2016 14:36:37 +0000"  >&lt;p&gt;Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/19193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19193&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7936&quot; title=&quot;Resource acquired to &amp;#39;read_fd&amp;#39; at line 500 may be lost here.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7936&quot;&gt;&lt;del&gt;LU-7936&lt;/del&gt;&lt;/a&gt; utils: fix resource lost&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8d42f5b64a6f94e342ae012d1a9babaed745a5dd&lt;/p&gt;</comment>
                            <comment id="148339" author="gerrit" created="Mon, 11 Apr 2016 02:52:11 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/19193/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19193/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7936&quot; title=&quot;Resource acquired to &amp;#39;read_fd&amp;#39; at line 500 may be lost here.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7936&quot;&gt;&lt;del&gt;LU-7936&lt;/del&gt;&lt;/a&gt; utils: fix resource lost&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9550cf25ff45ab012cdb9a48be82a04d1ea710b1&lt;/p&gt;</comment>
                            <comment id="148370" author="jgmitter" created="Mon, 11 Apr 2016 13:30:39 +0000"  >&lt;p&gt;Landed to master for 2.9.0&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|hzy5zz:</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>