<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:18:15 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-8516] lock policy is changed for existing lock by resent</title>
                <link>https://jira.whamcloud.com/browse/LU-8516</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;in ldlm_handle_enqueue0() there is special case for resent-reconstruct when lock exists:&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; (unlikely((flags &amp;amp; LDLM_FL_REPLAY) ||
		     (lustre_msg_get_flags(req-&amp;gt;rq_reqmsg) &amp;amp; MSG_RESENT))) {
                &lt;span class=&quot;code-comment&quot;&gt;/* Find an existing lock in the per-export lock hash */&lt;/span&gt;
		/* In the function below, .hs_keycmp resolves to
		 * ldlm_export_lock_keycmp() */
		&lt;span class=&quot;code-comment&quot;&gt;/* coverity[overrun-buffer-val] */&lt;/span&gt;
                lock = cfs_hash_lookup(req-&amp;gt;rq_export-&amp;gt;exp_lock_hash,
                                       (void *)&amp;amp;dlm_req-&amp;gt;lock_handle[0]);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lock != NULL) {
                        DEBUG_REQ(D_DLMTRACE, req, &lt;span class=&quot;code-quote&quot;&gt;&quot;found existing lock cookie &quot;&lt;/span&gt;
                                  LPX64, lock-&amp;gt;l_handle.h_cookie);
			flags |= LDLM_FL_RESENT;
                        GOTO(existing_lock, rc = 0);
		}
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;after that at existing_lock label:&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; (dlm_req-&amp;gt;lock_desc.l_resource.lr_type != LDLM_PLAIN)
		ldlm_convert_policy_to_local(req-&amp;gt;rq_export,
					dlm_req-&amp;gt;lock_desc.l_resource.lr_type,
					&amp;amp;dlm_req-&amp;gt;lock_desc.l_policy_data,
					&amp;amp;lock-&amp;gt;l_policy_data);
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (dlm_req-&amp;gt;lock_desc.l_resource.lr_type == LDLM_EXTENT)
		lock-&amp;gt;l_req_extent = lock-&amp;gt;l_policy_data.l_extent;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This chunk of code will replace policy of already existing and granted lock to policy from incoming request.&lt;/p&gt;

&lt;p&gt;For IBITS that means ibits replacement which is wrong at least because of skiplists which are based on mode and policy. Another bad effect is that the reconstructed reply will have lock with ibits from request but not ibits from its original processing on server. &lt;/p&gt;

&lt;p&gt;IMHO, we shouldn&apos;t touch policy of existing lock at all and skip this code, will there be any side effect?&lt;/p&gt;</description>
                <environment></environment>
        <key id="38983">LU-8516</key>
            <summary>lock policy is changed for existing lock by resent</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="3">Duplicate</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="tappro">Mikhail Pershin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Aug 2016 13:30:29 +0000</created>
                <updated>Tue, 23 Aug 2016 14:45:31 +0000</updated>
                            <resolved>Tue, 23 Aug 2016 14:45:31 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="162518" author="gerrit" created="Fri, 19 Aug 2016 13:48:54 +0000"  >&lt;p&gt;Mike Pershin (mike.pershin@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/22028&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/22028&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8516&quot; title=&quot;lock policy is changed for existing lock by resent&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8516&quot;&gt;&lt;del&gt;LU-8516&lt;/del&gt;&lt;/a&gt; ldlm: don&apos;t change lock policy from resent&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9fd0964d907663e5099c5a6d121161e3d3ee7e92&lt;/p&gt;</comment>
                            <comment id="162831" author="tappro" created="Tue, 23 Aug 2016 14:45:31 +0000"  >&lt;p&gt;solved already in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8349&quot; title=&quot;MDS crash ldlm_flock.c:849:ldlm_export_flock_put()) ASSERTION( flock-&amp;gt;blocking_export != ((void *)0) ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8349&quot;&gt;&lt;del&gt;LU-8349&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="37892">LU-8349</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|hzyle7:</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>