<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:37:09 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-10669] Potential race condition when unlinking MD</title>
                <link>https://jira.whamcloud.com/browse/LU-10669</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There could be a potential race condition that could cause an MD to be unlinked twice. The first unlink will decrement the references counter and the second unlink would cause an assert on the reference counter. &lt;/p&gt;

&lt;p&gt;two unlink paths can be hit at the same time, when request is expired and transfer finishes.&lt;/p&gt;

&lt;p&gt;These code paths need to be investigated in more details.&lt;/p&gt;</description>
                <environment></environment>
        <key id="50828">LU-10669</key>
            <summary>Potential race condition when unlinking MD</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="ashehata">Amir Shehata</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Feb 2018 21:07:19 +0000</created>
                <updated>Wed, 5 Dec 2018 22:56:50 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="221059" author="ashehata" created="Thu, 15 Feb 2018 02:40:50 +0000"  >&lt;p&gt;After more investigation, I don&apos;t see a possible scenario where the MD reference count can be decremented because of an RPC expiry. When an RPC expires the actual process of cleaning up happens in ptlrpc_expire_one_request(). Two functions are called: ptlrpc_unregister_reply() and ptlrpc_unregister_bulk(). Both of these functions end up calling LNetMDUnlink(). LNetMDUnlink() doesn&apos;t free the md unless there are no more reference counters on it. All this processing is done within the resource lock. lnet_finalize() is the only path where the refcount is decremented. Therefore for the md refcount to be &amp;lt; 0, lnet_finalize() must&apos;ve been called on the same msg/md pair twice.&lt;/p&gt;

&lt;p&gt;Since this issue has only been seen on OPA, I suspect that there could be a scenario where the OPA driver could be notifying the LND twice of the same message. I&apos;m adding a patch to not assert on this scenario, but rather print some information to verify that we&apos;re hitting this case.&lt;/p&gt;</comment>
                            <comment id="221060" author="gerrit" created="Thu, 15 Feb 2018 02:41:08 +0000"  >&lt;p&gt;Amir Shehata (amir.shehata@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31313&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31313&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10669&quot; title=&quot;Potential race condition when unlinking MD&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10669&quot;&gt;LU-10669&lt;/a&gt; lnet: do not assert in lnet_msg_detach_md()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: efc0fce69188d92d200d280e7db80d4031396610&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="54200">LU-11734</issuekey>
        </issuelink>
                            </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|hzzsuv:</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>