<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:55:58 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-5956] o2iblnd: incorrect uses of kib_tx_t::tx_nfrags</title>
                <link>https://jira.whamcloud.com/browse/LU-5956</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;      665 kiblnd_map_tx(lnet_ni_t *ni, kib_tx_t *tx,
......
      677         tx-&amp;gt;tx_nfrags = nfrags;
      678 
      679         rd-&amp;gt;rd_nfrags =                                                                                                                                                                                                                              
      680                 kiblnd_dma_map_sg(hdev-&amp;gt;ibh_ibdev,
      681                                   tx-&amp;gt;tx_frags, tx-&amp;gt;tx_nfrags, tx-&amp;gt;tx_dmadir);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As dma_map_sg() can return fewer entries in the mapped SG list, it may happen that &quot;rd-&amp;gt;rd_nfrags &amp;lt; tx-&amp;gt;tx_nfrags&quot;. But the code seemed to assume &quot;rd-&amp;gt;rd_nfrags == tx-&amp;gt;tx_nfrags&quot;:&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;642 kiblnd_unmap_tx(lnet_ni_t *ni, kib_tx_t *tx)
658                 kiblnd_dma_unmap_sg(tx-&amp;gt;tx_pool-&amp;gt;tpo_hdev-&amp;gt;ibh_ibdev,
659                                     tx-&amp;gt;tx_frags, tx-&amp;gt;tx_nfrags, tx-&amp;gt;tx_dmadir);

1474 kiblnd_send (lnet_ni_t *ni, void *private, lnet_msg_t *lntmsg)
1550                 nob = offsetof(kib_get_msg_t, ibgm_rd.rd_frags[tx-&amp;gt;tx_nfrags]);

1707 kiblnd_recv (lnet_ni_t *ni, void *private, lnet_msg_t *lntmsg, int delayed,
1788                 nob = offsetof(kib_putack_msg_t, ibpam_rd.rd_frags[tx-&amp;gt;tx_nfrags]);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It seemed that the # original SG entries is not needed anywhere in the code, so it can be fixed by assigning the # mapped SG entries to kib_tx_t::tx_nfrags.&lt;/p&gt;</description>
                <environment></environment>
        <key id="27721">LU-5956</key>
            <summary>o2iblnd: incorrect uses of kib_tx_t::tx_nfrags</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="isaac">Isaac Huang</assignee>
                                    <reporter username="isaac">Isaac Huang</reporter>
                        <labels>
                            <label>lnet</label>
                    </labels>
                <created>Tue, 25 Nov 2014 19:58:34 +0000</created>
                <updated>Fri, 1 Jul 2016 18:46:30 +0000</updated>
                            <resolved>Fri, 10 Jul 2015 12:11:06 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="100095" author="gerrit" created="Tue, 25 Nov 2014 21:19:18 +0000"  >&lt;p&gt;Isaac Huang (he.huang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/12857&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12857&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5956&quot; title=&quot;o2iblnd: incorrect uses of kib_tx_t::tx_nfrags&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5956&quot;&gt;&lt;del&gt;LU-5956&lt;/del&gt;&lt;/a&gt; o2iblnd: incorrect uses of kib_tx_t::tx_nfrags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e06ac14a307056759d2c1dc91035ef059f855512&lt;/p&gt;</comment>
                            <comment id="102597" author="isaac" created="Mon, 5 Jan 2015 23:57:55 +0000"  >&lt;p&gt;Liang pointed out:&lt;br/&gt;
The &apos;nents&apos; argument to the dma_unmap_sg call must be the &lt;em&gt;same&lt;/em&gt; one you passed into the dma_map_sg call, it should &lt;em&gt;NOT&lt;/em&gt; be the &apos;count&apos; value &lt;em&gt;returned&lt;/em&gt; from the dma_map_sg call.&lt;/p&gt;

&lt;p&gt;So, kib_tx_t::tx_nfrags should still be kept intact, while kiblnd_send/kiblnd_recv should be fixed to use # mapped entries instead.&lt;/p&gt;</comment>
                            <comment id="120919" author="gerrit" created="Fri, 10 Jul 2015 03:07:03 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/12857/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12857/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5956&quot; title=&quot;o2iblnd: incorrect uses of kib_tx_t::tx_nfrags&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5956&quot;&gt;&lt;del&gt;LU-5956&lt;/del&gt;&lt;/a&gt; o2iblnd: wrong uses of kib_tx_t::tx_nfrags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 592e3d2ff84899cfe70d06d4ae2217a8659c0f8a&lt;/p&gt;</comment>
                            <comment id="120952" author="pjones" created="Fri, 10 Jul 2015 12:11:06 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                            <comment id="135994" author="gerrit" created="Fri, 11 Dec 2015 02:38:44 +0000"  >&lt;p&gt;Doug Oucharek (doug.s.oucharek@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17558&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17558&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5956&quot; title=&quot;o2iblnd: incorrect uses of kib_tx_t::tx_nfrags&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5956&quot;&gt;&lt;del&gt;LU-5956&lt;/del&gt;&lt;/a&gt; o2iblnd: wrong uses of kib_tx_t::tx_nfrags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b1_8&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c947aaf5e15f776ba54492a961178bbd98f636e7&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <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|hzx1jz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16635</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>