Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755842AbZAGMks (ORCPT ); Wed, 7 Jan 2009 07:40:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751107AbZAGMkg (ORCPT ); Wed, 7 Jan 2009 07:40:36 -0500 Received: from netgear.net.ru ([195.178.208.66]:50761 "EHLO tservice.net.ru" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751355AbZAGMkf (ORCPT ); Wed, 7 Jan 2009 07:40:35 -0500 Date: Wed, 7 Jan 2009 15:40:34 +0300 From: Evgeniy Polyakov To: Jens Axboe Cc: Jarek Poplawski , Willy Tarreau , Changli Gao , Herbert Xu , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Data corruption issue with splice() on 2.6.27.10 Message-ID: <20090107124034.GB31255@ioremap.net> References: <20081224152841.GB13113@1wt.eu> <20090106085442.GA9513@ff.dom.local> <20090106094138.GE25644@1wt.eu> <20090106100112.GB9513@ff.dom.local> <20090106155715.GA28783@1wt.eu> <20090107093915.GA6899@ff.dom.local> <20090107122205.GA6051@1wt.eu> <20090107123153.GA9597@ff.dom.local> <20090107123504.GN32491@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090107123504.GN32491@kernel.dk> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 16 On Wed, Jan 07, 2009 at 01:35:04PM +0100, Jens Axboe (jens.axboe@oracle.com) wrote: > Irregardless of that particular oddity, I don't think this is the right > path to take at all. We need to delay the pipe buffer consumption until > the appropriate time. As a proof of concept we can put a delayed work_struct into the buffer and only release its content after some timeout big enough (like one second or so) for the hardware to actually transmit its buffers. -- Evgeniy Polyakov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/