<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:35 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-8210] OST Read Cache does not work in Centos7 platform</title>
                <link>https://jira.whamcloud.com/browse/LU-8210</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sanity:156 test failed in rhel7 plataform for writecache disable&lt;br/&gt;
and readcache enabled.&lt;/p&gt;

&lt;p&gt;12288 bytes (12 kB) copied, 0.00750388 s, 1.6 MB/s&lt;br/&gt;
cache hits:: before: 4142, after: 4142&lt;br/&gt;
Read again; it should be satisfied from the cache.&lt;br/&gt;
 sanity test_156: @@@@@@ FAIL: NOT IN CACHE: before: 4142, after: 4142 &lt;br/&gt;
  Trace dump:&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4730:error_noexit()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4761:error()&lt;br/&gt;
  = /usr/lib64/lustre/tests/sanity.sh:10271:test_156()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:5008:run_one()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:5045:run_one_logged()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4910:run_test()&lt;br/&gt;
  = /usr/lib64/lustre/tests/sanity.sh:10278:main()&lt;/p&gt;</description>
                <environment></environment>
        <key id="37227">LU-8210</key>
            <summary>OST Read Cache does not work in Centos7 platform</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="ys">Yang Sheng</assignee>
                                    <reporter username="wangshilong">Wang Shilong</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 27 May 2016 14:04:48 +0000</created>
                <updated>Thu, 14 Jun 2018 21:41:16 +0000</updated>
                            <resolved>Thu, 2 Jun 2016 11:49:08 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="153812" author="gerrit" created="Fri, 27 May 2016 14:07:36 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20478&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20478&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8210&quot; title=&quot;OST Read Cache does not work in Centos7 platform&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8210&quot;&gt;&lt;del&gt;LU-8210&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: fix setting pages PageUptodate state&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f8630c9a585c97550405fa5cbb9f0d48ff4a37c8&lt;/p&gt;</comment>
                            <comment id="153827" author="wangshilong" created="Fri, 27 May 2016 15:18:45 +0000"  >&lt;p&gt;Intresting thing is that we should always reproduce this problem in rhel7 platform, but I don&apos;t see&lt;br/&gt;
it reproduced in Intel autotest platform,  but we could reproduce it in our environment.&lt;/p&gt;</comment>
                            <comment id="153831" author="wangshilong" created="Fri, 27 May 2016 15:42:16 +0000"  >&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;53  * drivers should _never_ use the all version - the bio may have been split
154  * before it got to the driver and the driver won&apos;t own all of it
155  */
156 #define bio_for_each_segment_all(bvl, bio, i)                           \
157         for (i = 0;                                                     \
158              bvl = bio_iovec_idx((bio), (i)), i &amp;lt; (bio)-&amp;gt;bi_vcnt;       \
159              i++)
160 
161 #define bio_for_each_segment(bvl, bio, i)                               \
162         for (i = (bio)-&amp;gt;bi_idx;                                         \
163              bvl = bio_iovec_idx((bio), (i)), i &amp;lt; (bio)-&amp;gt;bi_vcnt;       \
164              i++)

Here is difference between two interface, bio_for_each_segment_all() start from index,0
while bio_for_each_segment start from @bi_idx, while @bi_idx might change in bio_advance()
during IO handling.

Aslo Looking from How Current upstream Filesystem handle page state updates
in end IO:
[root@server11 fs]# git grep bio_for_each_segment_all
btrfs/compression.c:            bio_for_each_segment_all(bvec, cb-&amp;gt;orig_bio, i)
btrfs/disk-io.c:        bio_for_each_segment_all(bvec, bio, i) {
btrfs/extent_io.c:      bio_for_each_segment_all(bvec, bio, i) {
btrfs/extent_io.c:      bio_for_each_segment_all(bvec, bio, i) {
btrfs/extent_io.c:      bio_for_each_segment_all(bvec, bio, i) {
btrfs/inode.c:  bio_for_each_segment_all(bvec, bio, i)
btrfs/inode.c:  bio_for_each_segment_all(bvec, &amp;amp;io_bio-&amp;gt;bio, i) {
btrfs/inode.c:  bio_for_each_segment_all(bvec, bio, i) {
btrfs/inode.c:  bio_for_each_segment_all(bvec, &amp;amp;io_bio-&amp;gt;bio, i) {
crypto/crypto.c:        bio_for_each_segment_all(bv, bio, i) {
direct-io.c:            bio_for_each_segment_all(bvec, bio, i) {
exofs/ore.c:    bio_for_each_segment_all(bv, bio, i) {
exofs/ore_raid.c:               bio_for_each_segment_all(bv, bio, i) {
ext4/page-io.c: bio_for_each_segment_all(bvec, bio, i) {
ext4/readpage.c:        bio_for_each_segment_all(bv, bio, i) {
ext4/readpage.c:        bio_for_each_segment_all(bv, bio, i) {
f2fs/data.c:    bio_for_each_segment_all(bvec, bio, i) {
f2fs/data.c:    bio_for_each_segment_all(bvec, bio, i) {
f2fs/data.c:    bio_for_each_segment_all(bvec, io-&amp;gt;bio, i) {
gfs2/lops.c:    bio_for_each_segment_all(bvec, bio, i) {
gfs2/meta_io.c: bio_for_each_segment_all(bvec, bio, i) {
logfs/dev_bdev.c:       bio_for_each_segment_all(bvec, bio, i) {
mpage.c:        bio_for_each_segment_all(bv, bio, i) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="153834" author="wangshilong" created="Fri, 27 May 2016 15:56:05 +0000"  >&lt;p&gt;I am still wondering why Intel autotest could pass this test, maybe I miss something here...........&lt;/p&gt;</comment>
                            <comment id="153840" author="wangshilong" created="Fri, 27 May 2016 16:22:29 +0000"  >&lt;p&gt;I see from Documentation/block/biodoc.txt &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Drivers which can&apos;t process a large bio in one shot can use the bi_idx&lt;br/&gt;
 484   field to keep track of the next bio_vec entry to process.&lt;br/&gt;
 485   (e.g a 1MB bio_vec needs to be handled in max 128kB chunks for IDE)&lt;br/&gt;
 486   [TBD: Should preferably also have a bi_voffset and bi_vlen to avoid modifying&lt;br/&gt;
 487    bi_offset an len fields]&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So this problem might be related to Specific Driver which can explain&lt;br/&gt;
why we could reproduce it in our environment, however, we still need fix this issue&lt;br/&gt;
In Lustre.&lt;/p&gt;</comment>
                            <comment id="153873" author="pjones" created="Fri, 27 May 2016 20:32:36 +0000"  >&lt;p&gt;Yang Sheng&lt;/p&gt;

&lt;p&gt;Could you please advise on this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="154159" author="ys" created="Tue, 31 May 2016 18:17:02 +0000"  >&lt;p&gt;Hi, Wang,&lt;/p&gt;

&lt;p&gt;Do you mind provide which type disk driver apply in your test environment. I am interesting to do a reproduction.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
YangSheng&lt;/p&gt;</comment>
                            <comment id="154181" author="wangshilong" created="Tue, 31 May 2016 23:24:56 +0000"  >&lt;p&gt;Hi Sheng,&lt;/p&gt;

&lt;p&gt; Qemu configurations something like this:&lt;/p&gt;

&lt;p&gt;  &amp;lt;disk type=&apos;file&apos; device=&apos;disk&apos;&amp;gt;&lt;br/&gt;
      &amp;lt;driver name=&apos;qemu&apos; type=&apos;qcow2&apos; cache=&apos;none&apos;/&amp;gt;&lt;br/&gt;
      &amp;lt;source file=&apos;/home/vms/autotest-el7.2-vm5b.img&apos;/&amp;gt;&lt;br/&gt;
      &amp;lt;target dev=&apos;sdb&apos; bus=&apos;virtio&apos;/&amp;gt;&lt;br/&gt;
      &amp;lt;address type=&apos;pci&apos; domain=&apos;0x0000&apos; bus=&apos;0x00&apos; slot=&apos;0x07&apos; function=&apos;0x0&apos;/&amp;gt;&lt;br/&gt;
    &amp;lt;/disk&amp;gt;&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Shilong&lt;/p&gt;</comment>
                            <comment id="154196" author="ys" created="Wed, 1 Jun 2016 01:47:40 +0000"  >&lt;p&gt;Many thanks for your help.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
YangSheng&lt;/p&gt;</comment>
                            <comment id="154379" author="gerrit" created="Thu, 2 Jun 2016 04:41:29 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/20478/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20478/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8210&quot; title=&quot;OST Read Cache does not work in Centos7 platform&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8210&quot;&gt;&lt;del&gt;LU-8210&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: fix setting pages PageUptodate state&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5e5e4ae2be4bc377f0f896163ae59bf338c4250c&lt;/p&gt;</comment>
                            <comment id="154414" author="pjones" created="Thu, 2 Jun 2016 11:49:08 +0000"  >&lt;p&gt;Landed for 2.9&lt;/p&gt;</comment>
                            <comment id="154589" author="simmonsja" created="Fri, 3 Jun 2016 16:40:25 +0000"  >&lt;p&gt;This patch breaks support with the latest kernels &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; Is the lloop driver that breaks.&lt;/p&gt;</comment>
                            <comment id="154642" author="adilger" created="Fri, 3 Jun 2016 22:36:34 +0000"  >&lt;p&gt;Luckily I thought we are deleting lloop, so that would be the easiest fix?&lt;/p&gt;</comment>
                            <comment id="154645" author="simmonsja" created="Fri, 3 Jun 2016 23:35:49 +0000"  >&lt;p&gt;The default loop doesn&apos;t support direct I/O until the 4.6 kernel if I remember right. So we still need the fix for kernels between 3.16 &amp;lt;-&amp;gt; 4.5&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>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="36318">LU-8056</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|hzycyv:</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>