<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:27:14 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-16463] llapi_open_by_fid open should not be cached systematically</title>
                <link>https://jira.whamcloud.com/browse/LU-16463</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;llapi_open_by_fid() uses open_by_handle_at() since &lt;a href=&quot;https://review.whamcloud.com/36603&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36603&lt;/a&gt; (&quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8585&quot; title=&quot;All Lustre test suites should pass with subdirectory mount&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8585&quot;&gt;LU-8585&lt;/a&gt; llapi: use open_by_handle_at in llapi_open_by_fid&quot;). But handle are used by NFS and cache open in that case to limit the number of open-close (close are sent to MDT only on lock conflict or cache shrinks, &lt;a href=&quot;http://review.whamcloud.com/20354&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20354&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;This breaks the llsom_sync util, because it used llapi_open_by_fid and &quot;trusted.som&quot; xattrs are synchronized on close requests:&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;[root@client client]# touch test                                                
[root@client client]# dd if=/dev/zero of=test bs=1M count=1                     
1+0 records in                                                                  
1+0 records out                                                                 
1048576 bytes (1.0 MB) copied, 0.00145669 s, 720 MB/s                           
[root@client client]# lfs getsom test &amp;amp;&amp;amp; stat test                              
file: test size: 1048576 blocks: 0 flags: 4                                     
  File: &#8216;test&#8217;                                                                  
  Size: 1048576         Blocks: 2048       IO Block: 4194304 regular file       
Device: 481510a2h/1209340066d   Inode: 144115205507383305  Links: 1             
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)        
Access: 2023-01-12 11:22:03.000000000 +0100                                     
Modify: 2023-01-12 11:22:07.000000000 +0100                                     
Change: 2023-01-12 11:22:07.000000000 +0100                                     
 Birth: -                                                                       
[root@client client]# cat test                                                                      
[root@client client]# lfs getsom test &amp;amp;&amp;amp; stat test                                                  
file: test size: 1048576 blocks: 2048 flags: 4                                                      &amp;lt;----  updated
  File: &#8216;test&#8217;                                                                                      
  Size: 1048576         Blocks: 2048       IO Block: 4194304 regular file                           
Device: 481510a2h/1209340066d   Inode: 144115205507383305  Links: 1                                 
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)                            
Access: 2023-01-12 11:22:27.000000000 +0100                                                         
Modify: 2023-01-12 11:22:07.000000000 +0100                                                         
Change: 2023-01-12 11:22:07.000000000 +0100                                                         
 Birth: -                                                                                           
[root@client client]# dd if=/dev/zero of=test bs=1M count=2 conv=notrunc                            
2+0 records in                                                                                      
2+0 records out                                                                                     
2097152 bytes (2.1 MB) copied, 0.00210231 s, 998 MB/s                                               
[root@client client]# lfs getsom test &amp;amp;&amp;amp; stat test                                                  
file: test size: 2097152 blocks: 2048 flags: 4                                                      
  File: &#8216;test&#8217;                                                                                      
  Size: 2097152         Blocks: 4096       IO Block: 4194304 regular file                           
Device: 481510a2h/1209340066d   Inode: 144115205507383305  Links: 1                                 
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)                            
Access: 2023-01-12 11:22:27.000000000 +0100                                                         
Modify: 2023-01-12 11:23:02.000000000 +0100                                                         
Change: 2023-01-12 11:23:02.000000000 +0100                                                         
 Birth: -                                                                                           
[root@client client]# llsom_sync -u cl11 -m lustrefs-MDT0000 /media/lustrefs/client                 
Start to sync 1 records.                                                                            
[root@client client]# lfs getsom test &amp;amp;&amp;amp; stat test                                                  
file: test size: 2097152 blocks: 2048 flags: 4                                                       &amp;lt;---- not updated
  File: &#8216;test&#8217;                                                                                      
  Size: 2097152         Blocks: 4096       IO Block: 4194304 regular file                           
Device: 481510a2h/1209340066d   Inode: 144115205507383305  Links: 1                                 
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)                            
Access: 2023-01-12 11:22:27.000000000 +0100                                                         
Modify: 2023-01-12 11:23:02.000000000 +0100                                                         
Change: 2023-01-12 11:23:02.000000000 +0100                                                         
 Birth: -                                                                                           
[root@client client]# cat test                                                                      
[root@client client]# lfs getsom test &amp;amp;&amp;amp; stat test                                                  
file: test size: 2097152 blocks: 2048 flags: 4                                                      &amp;lt;---- not updated
  File: &#8216;test&#8217;                                                                                      
  Size: 2097152         Blocks: 4096       IO Block: 4194304 regular file                           
Device: 481510a2h/1209340066d   Inode: 144115205507383305  Links: 1                                 
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)                            
Access: 2023-01-12 11:24:29.000000000 +0100                                                         
Modify: 2023-01-12 11:23:02.000000000 +0100                                                         
Change: 2023-01-12 11:23:02.000000000 +0100                                                         
 Birth: -                                                                                           
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is not seen by &quot;sanity test 807&quot; because &lt;a href=&quot;https://review.whamcloud.com/32158&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32158&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10948&quot; title=&quot;client cache open lock after N opens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10948&quot;&gt;LU-10948&lt;/a&gt; llite: Introduce inode open heat counter&quot; clears lock caches before calling &quot;lfs getsom&quot; (in check_lsom_data/check_lsom_size).&lt;/p&gt;</description>
                <environment></environment>
        <key id="73951">LU-16463</key>
            <summary>llapi_open_by_fid open should not be cached systematically</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="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Jan 2023 10:34:36 +0000</created>
                <updated>Mon, 3 Jul 2023 13:53:28 +0000</updated>
                            <resolved>Thu, 23 Feb 2023 13:28:06 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="358777" author="simmonsja" created="Thu, 12 Jan 2023 12:46:05 +0000"  >&lt;p&gt;Can you try patch &lt;a href=&quot;https://review.whamcloud.com/#/c/fs/lustre-release/+/49237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/fs/lustre-release/+/49237&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="358811" author="eaujames" created="Thu, 12 Jan 2023 15:26:51 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Can you try patch &lt;a href=&quot;https://review.whamcloud.com/#/c/fs/lustre-release/+/49237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/fs/lustre-release/+/49237&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I have read the patch, that should work.&lt;br/&gt;
I was working on the following patch to avoid caching opens only for llapi_open_by_fid().&lt;/p&gt;
</comment>
                            <comment id="358812" author="gerrit" created="Thu, 12 Jan 2023 15:27:16 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49616&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49616&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16463&quot; title=&quot;llapi_open_by_fid open should not be cached systematically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16463&quot;&gt;&lt;del&gt;LU-16463&lt;/del&gt;&lt;/a&gt; llite: fix the opencache for llapi_open_by_fid()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 49d440cd9132d799a98e3264494015e3faaa4fba&lt;/p&gt;</comment>
                            <comment id="358818" author="simmonsja" created="Thu, 12 Jan 2023 16:24:49 +0000"  >&lt;p&gt;Personally I like to see us move away from opencache since its rarely needed anymore. Let me update my patch. Now I don&apos;t like your idea of using a flag I could see passing in an open count limit. By default it would be zero but it would allow the user to cache the open if they wanted after a certain open count. That would be powerful.&lt;/p&gt;</comment>
                            <comment id="363830" author="gerrit" created="Thu, 23 Feb 2023 06:27:50 +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/+/49237/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49237/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16463&quot; title=&quot;llapi_open_by_fid open should not be cached systematically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16463&quot;&gt;&lt;del&gt;LU-16463&lt;/del&gt;&lt;/a&gt; llite: replace lld_nfs_dentry flag with opencache handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d7a85652f4fcb83192262cfc1a0211890f404c7c&lt;/p&gt;</comment>
                            <comment id="363869" author="pjones" created="Thu, 23 Feb 2023 13:28:06 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="377258" author="gerrit" created="Mon, 3 Jul 2023 13:53:28 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51540&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51540&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16463&quot; title=&quot;llapi_open_by_fid open should not be cached systematically&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16463&quot;&gt;&lt;del&gt;LU-16463&lt;/del&gt;&lt;/a&gt; llite: replace lld_nfs_dentry flag with opencache handling&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8851053466b545039d6719a39d9726066c651b82&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="39648">LU-8585</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51963">LU-10948</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|i039q7:</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>