From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbaE0Rvc (ORCPT ); Tue, 27 May 2014 13:51:32 -0400 Received: from mail-la0-f51.google.com ([209.85.215.51]:35422 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751363AbaE0Rvb (ORCPT ); Tue, 27 May 2014 13:51:31 -0400 Date: Tue, 27 May 2014 21:51:27 +0400 From: Cyrill Gorcunov To: Cong Wang Cc: "Kirill A. Shutemov" , Al Viro , LKML , Andrew Morton , Pavel Emelyanov Subject: Re: [linux-next] splice call weird results Message-ID: <20140527175127.GA2570@moon> References: <20140527091335.GC20436@moon> <20140527102013.3BF61E009B@blue.fi.intel.com> <20140527102728.GD20436@moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 27, 2014 at 10:20:46AM -0700, Cong Wang wrote: > On Tue, May 27, 2014 at 3:27 AM, Cyrill Gorcunov 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 Thanks, but i doubt, the problem I notice is rather in iter_file_splice_write.