<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:21:39 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-15829] DIO small reads fails</title>
                <link>https://jira.whamcloud.com/browse/LU-15829</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On Lustre there is one strange quirk:&lt;/p&gt;

&lt;p&gt;DIO writing now works, assuming you are writing from an aligned buffer, you are not restricted to the 512 byte limit.&lt;/p&gt;

&lt;p&gt;However DIO reading of a single byte is broken, reading for more than 1 byte is okay.&lt;/p&gt;

&lt;p&gt;Attached test source:  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/43553/43553_dio_test.c&quot; title=&quot;dio_test.c attached to LU-15829&quot;&gt;dio_test.c&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &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;[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -w -d -b 1 /mnt/lustre/tmp/dio_w3.dat
/mnt/lustre/tmp/dio_w3.dat - DIRECT WRITE 1/1 bytes
[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -d -b 1 /mnt/lustre/tmp/dio_w3.dat
read: 0 (EOF)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If the block you are reading 1 byte from is in the PAGE_CACHE then the 1 byte read will succeed.&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;[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -b 1 /mnt/lustre/tmp/dio_w3.dat
read: 1, x&apos;33  &apos;
/mnt/lustre/tmp/dio_w3.dat - BUFFER READ 1/1 bytes
[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -d -b 1 /mnt/lustre/tmp/dio_w3.dat
read: 1, x&apos;33  &apos;
/mnt/lustre/tmp/dio_w3.dat - DIRECT READ 1/1 bytes
[shaun@alma8 dio]$ echo 3 | sudo tee /proc/sys/vm/drop_caches
3
[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -d -b 1 /mnt/lustre/tmp/dio_w3.dat
read: 0 (EOF)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So what happens when doing a DIO read of 2 or more bytes and the block is NOT in the PAGE_CACHE?&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;[shaun@alma8 dio]$ echo 3 | sudo tee /proc/sys/vm/drop_caches
3
[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -d -b 1 /mnt/lustre/tmp/dio_w3.dat
read: 0 (EOF)
[shaun@alma8 dio]$ /home/shaun/tools/dio/dio_test -d -b 2 /mnt/lustre/tmp/dio_w3.dat
read: 1, x&apos;33  &apos;
read: 0 (EOF)
/mnt/lustre/tmp/dio_w3.dat - DIRECT READ 1/2 bytes
[shaun@alma8 dio]$ 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
        <key id="70167">LU-15829</key>
            <summary>DIO small reads fails</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="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 May 2022 05:12:38 +0000</created>
                <updated>Mon, 31 Oct 2022 04:09:40 +0000</updated>
                            <resolved>Mon, 12 Sep 2022 14:58:47 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="333970" author="gerrit" created="Fri, 6 May 2022 05:13:52 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47225&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47225&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15829&quot; title=&quot;DIO small reads fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15829&quot;&gt;&lt;del&gt;LU-15829&lt;/del&gt;&lt;/a&gt; clio: Force buffered I/O on small reads&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 57f500ecaada808af3a2fb5f5dd5d895d5a6aa3b&lt;/p&gt;</comment>
                            <comment id="335516" author="gerrit" created="Thu, 19 May 2022 17:37:32 +0000"  >&lt;p&gt;&quot;Alexey Lyashkov &amp;lt;alexey.lyashkov@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47395&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47395&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15829&quot; title=&quot;DIO small reads fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15829&quot;&gt;&lt;del&gt;LU-15829&lt;/del&gt;&lt;/a&gt; llite: don&apos;t use a kms if it invalid.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b96430385b93e30f0bea1e147e0b17f28577bdcd&lt;/p&gt;</comment>
                            <comment id="346367" author="pjones" created="Mon, 12 Sep 2022 14:58:47 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="43553" name="dio_test.c" size="3257" author="stancheff" created="Fri, 6 May 2022 07:57:28 +0000"/>
                    </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|i02p4v:</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>