<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:43 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-13846] move iov iter forward by ourself</title>
                <link>https://jira.whamcloud.com/browse/LU-13846</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt; Newer kernel will reward iov iter back to original&lt;br/&gt;
    position for direct IO, see following codes:&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;    
            iov_iter_revert(from, write_len -iov_iter_count(from));---------&amp;gt;here
    out:
            return written;
    }
    EXPORT_SYMBOL(generic_file_direct_write);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;    This break assumptions from Lustre and caused problem&lt;br/&gt;
    when Lustre need split one IO to several io loop, considering&lt;br/&gt;
    4M block IO for 1 MiB stripe file, it will submit first 1MiB IO&lt;br/&gt;
    4 times and caused data corruptions finally.&lt;/p&gt;

&lt;p&gt;    Since generic kernel varies from different kernel versions,&lt;br/&gt;
    we&apos;d better fix this problem by move iov iter forward by&lt;br/&gt;
    Lustre itself.&lt;/p&gt;</description>
                <environment></environment>
        <key id="60224">LU-13846</key>
            <summary>move iov iter forward by ourself</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="wshilong">Wang Shilong</assignee>
                                    <reporter username="wshilong">Wang Shilong</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Aug 2020 13:13:10 +0000</created>
                <updated>Mon, 28 Sep 2020 16:19:34 +0000</updated>
                            <resolved>Sat, 19 Sep 2020 17:20:02 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="276566" author="wshilong" created="Sat, 1 Aug 2020 15:57:34 +0000"  >&lt;p&gt;Patch is here:&lt;br/&gt;
&lt;a href=&quot;https://review.whamcloud.com/#/c/39565/2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/39565/2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="276650" author="wshilong" created="Tue, 4 Aug 2020 11:18:15 +0000"  >&lt;p&gt;A bit deep look when we will have this bug:&lt;/p&gt;

&lt;p&gt;The problem existed since kernel v3.16 from following upstream linux commit:&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;commit 26978b8b4d83c46f4310b253db70fa9e65149e7c
Author: Al Viro &amp;lt;viro@zeniv.linux.org.uk&amp;gt;
Date:   Mon Mar 10 14:08:45 2014 -0400
    give -&amp;gt;direct_IO() a copy of iov_iter
    
    the thing is, we want to advance what&apos;s given to -&amp;gt;direct_IO() as we
    are forming the request; however, the callers care about the amount
    of data actually transferred, not the amount we tried to transfer.
    It&apos;s more convenient to allow -&amp;gt;direct_IO() instances do use
    iov_iter_advance() on the copy of iov_iter, leaving the actual
    advancing of the original to caller.
    
    Signed-off-by: Al Viro &amp;lt;viro@zeniv.linux.org.uk&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="278447" author="gerrit" created="Tue, 1 Sep 2020 03:43:29 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39565/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39565/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13846&quot; title=&quot;move iov iter forward by ourself&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13846&quot;&gt;&lt;del&gt;LU-13846&lt;/del&gt;&lt;/a&gt; llite: move iov iter forward by ourself&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 689714eb511d39e225da64d8bfae42a4b2554626&lt;/p&gt;</comment>
                            <comment id="280070" author="simmonsja" created="Sat, 19 Sep 2020 17:20:02 +0000"  >&lt;p&gt;Patch has landed. If more work is needed please reopen&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="60194">LU-13835</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|i016qv:</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>