<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:25:45 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-16297] ptl_send_rpc() ASSERTION ( (at_max == 0) || imp-&gt;imp_state != LUSTRE_IMP_FULL || (imp-&gt;imp_msghdr_flags &amp; MSGHDR_AT_SUPPORT) || !(imp-&gt;imp_connect_data.ocd_connect_flags &amp; 0x1000000ULL) )</title>
                <link>https://jira.whamcloud.com/browse/LU-16297</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;May 1 05:09:25 scratchn011 kernel: LustreError: 25042:0:(niobuf.c:772:ptl_send_rpc()) ASSERTION( (at_max == 0) || imp-&amp;gt;imp_state != LUSTRE_IMP_FULL || (imp-&amp;gt;imp_msghdr_flags &amp;amp; MSGHDR_AT_SUPPORT) || !(imp-&amp;gt;imp_connect_data.ocd_connect_flags &amp;amp; 0x1000000ULL) ) failed: May 1 05:09:25 scratchn011 kernel: LustreError: 25042:0:(niobuf.c:772:ptl_send_rpc()) LBUG
May 1 05:09:25 scratchn011 kernel: IEC: 026000003: LASSERT:

{ &quot;pid&quot;: &quot;25042&quot;, &quot;ext_pid&quot;: &quot;0&quot;, &quot;filename&quot;: &quot;niobuf.c&quot;, &quot;line&quot;: &quot;772&quot;, &quot;func_name&quot;: &quot;ptl_send_rpc&quot;, &quot;assert_info&quot;: &quot;( (at_max == 0) || imp-&amp;gt;imp_state != LUSTRE_IMP_FULL || (imp-&amp;gt;imp_msghdr_flags &amp;amp; MSGHDR_AT__SUPPORT) || !(imp-&amp;gt;imp_connect_data.ocd_connect_flags &amp;amp; 0x1000000ULL) ) failed: &quot; }
May 1 05:09:25 scratchn011 kernel: IEC: 026000004: LBUG:

{ &quot;pid&quot;: &quot;25042&quot;, &quot;ext_pid&quot;: &quot;0&quot;, &quot;filename&quot;: &quot;niobuf.c&quot;, &quot;line&quot;: &quot;772&quot;, &quot;func_name&quot;: &quot;ptl_send_rpc&quot; }
May 1 05:09:25 scratchn011 kernel: Pid: 25042, comm: ptlrpcd_06_02 3.10.0-957.1.3957.1.3.x4.4.25.x86_64 #1 SMP Mon Sep 20 16:59:46 PDT 2021
May 1 05:09:25 scratchn011 kernel: Call Trace:
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] libcfs_call_trace+0x8e/0xf0 [libcfs]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] lbug_with_loc+0x4c/0xa0 [libcfs]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] ptl_send_rpc+0xcfd/0xf10 [ptlrpc]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] ptlrpc_check_set.part.25+0x18ec/0x1e50 [ptlrpc]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] ptlrpc_check_set+0x5b/0xe0 [ptlrpc]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] ptlrpcd_check+0x4ab/0x590 [ptlrpc]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] ptlrpcd+0x4b8/0x560 [ptlrpc]
May 1 05:09:25 scratchn011 kernel: [&amp;lt;0&amp;gt;] kthread+0xd1/0xe0

crash&amp;gt; obd_import.imp_state,imp_msghdr_flags,imp_connect_data ffff94044a276000
  imp_state = LUSTRE_IMP_CONNECTING
  imp_msghdr_flags = (unknown: 0)
  imp_connect_data = {
    ocd_connect_flags = 2323857477600284832,
  }
crash&amp;gt; p/x 2323857477600284832&amp;amp;0x1000000ULL
$3 = 0x1000000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;this is a race between connect and re-send threads.&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;769         LASSERT(AT_OFF || imp-&amp;gt;imp_state != LUSTRE_IMP_FULL ||
770                 (imp-&amp;gt;imp_msghdr_flags &amp;amp; MSGHDR_AT_SUPPORT) ||
771                 !(imp-&amp;gt;imp_connect_data.ocd_connect_flags &amp;amp;
772                 OBD_CONNECT_AT));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;the assertion has 4 verification&lt;br/&gt;
When connection happens in the middle of assertion, a second part of assertion fails. And this leads to a wrong fail. A simple way to make this checks valid requires an atomic checking, with spin lock. But this is a hot path and spin lock would affect performance. So I prefer changing assertion to a warning. &lt;/p&gt;</description>
                <environment></environment>
        <key id="73087">LU-16297</key>
            <summary>ptl_send_rpc() ASSERTION ( (at_max == 0) || imp-&gt;imp_state != LUSTRE_IMP_FULL || (imp-&gt;imp_msghdr_flags &amp; MSGHDR_AT_SUPPORT) || !(imp-&gt;imp_connect_data.ocd_connect_flags &amp; 0x1000000ULL) )</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="aboyko">Alexander Boyko</assignee>
                                    <reporter username="aboyko">Alexander Boyko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 3 Nov 2022 11:41:31 +0000</created>
                <updated>Tue, 3 Jan 2023 21:41:02 +0000</updated>
                            <resolved>Tue, 3 Jan 2023 21:41:02 +0000</resolved>
                                    <version>Lustre 2.15.1</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="351642" author="gerrit" created="Thu, 3 Nov 2022 11:44:04 +0000"  >&lt;p&gt;&quot;Alexander &amp;lt;alexander.boyko@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49029&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49029&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16297&quot; title=&quot;ptl_send_rpc() ASSERTION ( (at_max == 0) || imp-&amp;gt;imp_state != LUSTRE_IMP_FULL || (imp-&amp;gt;imp_msghdr_flags &amp;amp; MSGHDR_AT_SUPPORT) || !(imp-&amp;gt;imp_connect_data.ocd_connect_flags &amp;amp; 0x1000000ULL) )&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16297&quot;&gt;&lt;del&gt;LU-16297&lt;/del&gt;&lt;/a&gt; ptlrpc: don&apos;t panic during reconnection&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 10bb3582bceb8107ed552d5554faf49e4586858d&lt;/p&gt;</comment>
                            <comment id="357808" author="gerrit" created="Tue, 3 Jan 2023 21:35:05 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49029/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49029/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16297&quot; title=&quot;ptl_send_rpc() ASSERTION ( (at_max == 0) || imp-&amp;gt;imp_state != LUSTRE_IMP_FULL || (imp-&amp;gt;imp_msghdr_flags &amp;amp; MSGHDR_AT_SUPPORT) || !(imp-&amp;gt;imp_connect_data.ocd_connect_flags &amp;amp; 0x1000000ULL) )&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16297&quot;&gt;&lt;del&gt;LU-16297&lt;/del&gt;&lt;/a&gt; ptlrpc: don&apos;t panic during reconnection&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: df31c4c0b39b8845911344e6fadc008bcba40bb1&lt;/p&gt;</comment>
                            <comment id="357815" author="pjones" created="Tue, 3 Jan 2023 21:41:02 +0000"  >&lt;p&gt;Landed for 2.16&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|i034nr:</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>