<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:39:23 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-10923] cl_io_loop improperly assumes all ios are rw-type IOs</title>
                <link>https://jira.whamcloud.com/browse/LU-10923</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;cl_io_loop has this code:&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;                pos   = io-&amp;gt;u.ci_rw.rw_range.cir_pos;
                count = io-&amp;gt;u.ci_rw.rw_range.cir_count;

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (io-&amp;gt;ci_pio) {
                        &lt;span class=&quot;code-comment&quot;&gt;/* submit &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; range &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; parallel execution */&lt;/span&gt;
                        pt = cl_io_submit_pt(io, pos, count);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (IS_ERR(pt)) {
                                cl_io_iter_fini(env, io);
                                rc = PTR_ERR(pt);
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                        }

                        *tail = pt;
                        tail = &amp;amp;pt-&amp;gt;cip_next;
                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                        size_t nob = io-&amp;gt;ci_nob;

                        CDEBUG(D_VFSTRACE,
                                &lt;span class=&quot;code-quote&quot;&gt;&quot;execute type %u range: [%llu, %llu) nob: %zu %s\n&quot;&lt;/span&gt;,
                                io-&amp;gt;ci_type, pos, pos + count, nob,
                                io-&amp;gt;ci_continue ? &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;&quot;&lt;/span&gt; : &lt;span class=&quot;code-quote&quot;&gt;&quot;stop&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now the io-&amp;gt;u.ci_rw. is only valid for accessing if the IO is of type CIT_READ/WRITE, otherwise the union is populated differently.&lt;/p&gt;

&lt;p&gt;And cl_io_loop IS called by other places, for example:&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;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (cl_io_init(env, io, CIT_FSYNC, io-&amp;gt;ci_obj) == 0)
                result = cl_io_loop(env, io);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problematic code was introduced by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8964&quot; title=&quot;use parallel I/O to improve performance on machines with slow single thread performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8964&quot;&gt;&lt;del&gt;LU-8964&lt;/del&gt;&lt;/a&gt; - parallel io code.&lt;br/&gt;
commit db59ecb5d1d0284fb918def6348a11e0966d7767&lt;/p&gt;</description>
                <environment></environment>
        <key id="51866">LU-10923</key>
            <summary>cl_io_loop improperly assumes all ios are rw-type IOs</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Apr 2018 04:54:12 +0000</created>
                <updated>Sat, 29 Jan 2022 08:49:40 +0000</updated>
                            <resolved>Sat, 29 Jan 2022 08:49:24 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="226228" author="pjones" created="Wed, 18 Apr 2018 11:13:54 +0000"  >&lt;p&gt;Dmitry&lt;/p&gt;

&lt;p&gt;Can you please advise?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="226237" author="dmiter" created="Wed, 18 Apr 2018 12:57:55 +0000"  >&lt;p&gt;I agree this is not correct, but not valid values are used in debug message only. Therefore this is minor issue. I will provide a patch to make it valid.&lt;/p&gt;</comment>
                            <comment id="226249" author="gerrit" created="Wed, 18 Apr 2018 15:18:02 +0000"  >&lt;p&gt;Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32049&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32049&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10923&quot; title=&quot;cl_io_loop improperly assumes all ios are rw-type IOs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10923&quot;&gt;&lt;del&gt;LU-10923&lt;/del&gt;&lt;/a&gt; obdclass: fix access to rw-type members from other IOs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 438bc8dbf986718959557c6ba83553ff7e1ac28c&lt;/p&gt;</comment>
                            <comment id="324431" author="adilger" created="Sat, 29 Jan 2022 08:49:24 +0000"  >&lt;p&gt;The pio feature was removed in patch &lt;a href=&quot;https://review.whamcloud.com/33912&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33912&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11825&quot; title=&quot;Remove LU-8964/pio feature &amp;amp; supporting framework&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11825&quot;&gt;&lt;del&gt;LU-11825&lt;/del&gt;&lt;/a&gt; clio: Remove pio feature&lt;/tt&gt;&quot;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54395">LU-11825</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|hzzvzr:</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>