Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757941AbYFXLgs (ORCPT ); Tue, 24 Jun 2008 07:36:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751041AbYFXLgi (ORCPT ); Tue, 24 Jun 2008 07:36:38 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:41960 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbYFXLgi (ORCPT ); Tue, 24 Jun 2008 07:36:38 -0400 To: jens.axboe@oracle.com CC: miklos@szeredi.hu, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, torvalds@linux-foundation.org In-reply-to: <20080624111913.GP20851@kernel.dk> (message from Jens Axboe on Tue, 24 Jun 2008 13:19:13 +0200) Subject: Re: [rfc patch 3/4] splice: remove confirm from pipe_buf_operations References: <20080621154607.154640724@szeredi.hu> <20080621154726.494538562@szeredi.hu> <20080624080440.GJ20851@kernel.dk> <20080624111913.GP20851@kernel.dk> Message-Id: From: Miklos Szeredi Date: Tue, 24 Jun 2008 13:36:35 +0200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 24 > It's an unfortunate side effect of the read-ahead, I'd much rather just > get rid of that. It _should_ behave like the non-ra case, when a page is > added it merely has IO started on it. So we want to have that be > something like > > if (!PageUptodate(page) && !PageInFlight(page)) > ... > > basically like PageWriteback(), but for read-in. OK it could be done, possibly at great pain. But why is it important? What's the use case where it matters that splice-in should not block on the read? And note, after the pipe is full it will block no matter what, since the consumer will have to wait until the page is brought uptodate, and can only then commence with getting the data out from the pipe. Miklos -- 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/