<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:09:48 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-7543] reserve lock flags for upcoming features and future expansion</title>
                <link>https://jira.whamcloud.com/browse/LU-7543</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The &lt;tt&gt;obd_connect_flags&lt;/tt&gt; field has almost run out of bits to add new features.  Reserve the last few free bits for upcoming features and the very last bit for &lt;tt&gt;OBD_CONNECT_FLAGS2&lt;/tt&gt; to create &lt;tt&gt;obd_connect_flags2&lt;/tt&gt;, to have space for new features.  Any feature that is using a bit in &lt;tt&gt;obd_connect_flags2&lt;/tt&gt; needs to understand &lt;tt&gt;OBD_CONNECT_FLAGS2&lt;/tt&gt; as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="33569">LU-7543</key>
            <summary>reserve lock flags for upcoming features and future expansion</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="yong.fan">nasf</assignee>
                                    <reporter username="yong.fan">nasf</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Dec 2015 03:27:26 +0000</created>
                <updated>Fri, 23 Sep 2016 13:12:23 +0000</updated>
                            <resolved>Wed, 6 Jan 2016 03:48:34 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="135997" author="gerrit" created="Fri, 11 Dec 2015 03:40:30 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17559&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17559&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve some connection flags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 799a54e6079c20a995ad2c89f07722305214851c&lt;/p&gt;</comment>
                            <comment id="136133" author="adilger" created="Sat, 12 Dec 2015 01:46:54 +0000"  >&lt;p&gt;The connection handing code on the server would need to add &lt;tt&gt;OBD_CONNECT_FLAGS2&lt;/tt&gt; checking, and then add a separate &lt;tt&gt;OST_CONNECT2_SUPPORTED&lt;/tt&gt; &lt;tt&gt;MDT_CONNECT2_SUPPORTED&lt;/tt&gt;, and &lt;tt&gt;MGS_CONNECT2_SUPPORTED&lt;/tt&gt; masks for that word.  Strictly speaking, clients shouldn&apos;t care if &lt;tt&gt;obd_connect_flags2&lt;/tt&gt; is masked off or not, since an older server will drop &lt;tt&gt;OBD_CONNECT_FLAGS2&lt;/tt&gt; and the client should check if this is still valid before trying to check &lt;tt&gt;obd_connect_flags2&lt;/tt&gt; features.&lt;/p&gt;

&lt;p&gt;It might be best to hide this complexity inside accessor functions like:&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;bool obd_connect_has_grant(struct obd_connect_data *ocd)
{
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ocd-&amp;gt;obd_connect_data &amp;amp; OBD_CONNECT_GRANT;
}

bool obd_connect_has_future_feature(struct obd_connect_data *ocd)
{
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ocd-&amp;gt;obd_connect_data &amp;amp; OBD_CONNECT_FLAGS2 &amp;amp;&amp;amp;
               ocd-&amp;gt;obd_connect_data2 &amp;amp; OBD_CONNECT2_FUTURE_FEATURE;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Otherwise, there is a danger of someone using an OBD_CONNECT2_* flag with obd_connect_data incorrectly, and having multiple checks throughout the code is just ugly.  This would also allow us to change the above helper function to &quot;return false&quot; if a feature is disabled at compile time for some reason without having to mess with the rest of the code.&lt;/p&gt;</comment>
                            <comment id="136135" author="adilger" created="Sat, 12 Dec 2015 02:31:52 +0000"  >&lt;p&gt;There are several older feature flags that could begin to be deprecated, for &quot;features&quot; that were more like transient bug fixes and not expected to ever be removed, or features that are always set on all connections and provide no value:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_CROW&lt;/tt&gt;: was never used in production, though it might some day be implemented?&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_NODEVOH&lt;/tt&gt;: change &lt;tt&gt;mdt_finish_open()&lt;/tt&gt; to assume it is always set, it is a bugfix from 1.4.6&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_REQPORTAL&lt;/tt&gt;: change &lt;tt&gt;osc_import_event()&lt;/tt&gt; to assume this feature is supported, bugfix from 1.5&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_JOIN&lt;/tt&gt;: deprecated feature since 1.8.0, 2.0.66&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_MDS/OSS_CAPA&lt;/tt&gt;: removed in 2.8 so stop sending this flag in &lt;tt&gt;client_common_fill_super()&lt;/tt&gt;, and remove checks in &lt;tt&gt;tgt_init_sec_level()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_RMT_CLIENT+_FORCE&lt;/tt&gt;: never used in production and not safe anyway, remove checks from &lt;tt&gt;tgt_init_sec_level()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_AT&lt;/tt&gt;: mandatory feature since 1.6, assume it is set in &lt;tt&gt;rev_import_flags_update()&lt;/tt&gt;, &lt;tt&gt;ptlrpc_connect_set_flags()&lt;/tt&gt;, &lt;tt&gt;ptl_send_rpc()&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;OBD_CONNECT_REAL&lt;/tt&gt;: I don&apos;t &lt;em&gt;think&lt;/em&gt; this does anything useful since 2.4 removed LMV from MDS, and was only ever an internal flag&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="136654" author="gerrit" created="Thu, 17 Dec 2015 02:44:23 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17644&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17644&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_SUBTREE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6a5cd7efd43be27ed2d8edd2d5b1973d5e6da933&lt;/p&gt;</comment>
                            <comment id="136655" author="gerrit" created="Thu, 17 Dec 2015 02:44:24 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17645&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17645&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_OBDOPACK&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4cbe3cfb592ff71fbf167d40137b4d281e8d9921&lt;/p&gt;</comment>
                            <comment id="136656" author="gerrit" created="Thu, 17 Dec 2015 02:44:24 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17646&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17646&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_LOCK_AHEAD&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6f4b258acba31e3779f047a1dd7cd668789949bd&lt;/p&gt;</comment>
                            <comment id="136657" author="gerrit" created="Thu, 17 Dec 2015 02:44:25 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17647&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17647&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_FLAGS2&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 632a9bfbe51e1c7e947276ee7aff6a1bda03ba80&lt;/p&gt;</comment>
                            <comment id="138026" author="gerrit" created="Wed, 6 Jan 2016 02:56:26 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/17644/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17644/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_SUBTREE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2b16de10d79f930283a1a0dc6e8c9c2a779aae5d&lt;/p&gt;</comment>
                            <comment id="138028" author="gerrit" created="Wed, 6 Jan 2016 02:57:06 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/17645/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17645/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_OBDOPACK&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c801f497807f45e7e081f0e1ea11037749a60270&lt;/p&gt;</comment>
                            <comment id="138029" author="gerrit" created="Wed, 6 Jan 2016 02:57:25 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/17646/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17646/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_LOCK_AHEAD&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 20d7508afa3b6f3ac703b4d43e5b1ad0ba782f19&lt;/p&gt;</comment>
                            <comment id="138030" author="gerrit" created="Wed, 6 Jan 2016 02:57:41 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/17647/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17647/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7543&quot; title=&quot;reserve lock flags for upcoming features and future expansion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7543&quot;&gt;&lt;del&gt;LU-7543&lt;/del&gt;&lt;/a&gt; obd: reserve connection flag OBD_CONNECT_FLAGS2&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a5dc6abb06215856dde2d572f7d4c24dddebb718&lt;/p&gt;</comment>
                            <comment id="138039" author="yong.fan" created="Wed, 6 Jan 2016 03:48:34 +0000"  >&lt;p&gt;The patches have been landed to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzxvkn:</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>