Re: [linux-next] splice call weird results

From: Cong Wang
Date: Tue May 27 2014 - 13:20:50 EST


On Tue, May 27, 2014 at 3:27 AM, Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
> On Tue, May 27, 2014 at 01:20:13PM +0300, Kirill A. Shutemov wrote:
>> Cyrill Gorcunov wrote:
>> > Hi! While been trying to run criu on linux-next (due to recent Kirill's patch related
>> > to /proc/pid/clear_refs with THP enabled) I noticed that it fails dumping programs when
>> > moves data from memory pages into an image file. So I wrote pretty idiotic test and
>> > run it on current fedora 20 kernel and then on linux-next.
>> >
>>
>> +Al. He reworked splice code in linux-next.
>
> Thanks Kirill. Al, it looks like iter_file_splice_write no longer honor @len while
> building kiocb vector but pushes as much as it can.


I guess this should fix your problem:
https://lkml.org/lkml/2014/5/27/353
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/