Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760026AbXEaPkV (ORCPT ); Thu, 31 May 2007 11:40:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758598AbXEaPjz (ORCPT ); Thu, 31 May 2007 11:39:55 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:49122 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758303AbXEaPjy (ORCPT ); Thu, 31 May 2007 11:39:54 -0400 Subject: Re: [PATCH] sendfile removal From: Tom Zanussi To: Jens Axboe Cc: linux-kernel@vger.kernel.org, cotte@de.ibm.com, hugh@veritas.com, neilb@suse.de, Linus Torvalds , hch@infradead.org In-Reply-To: <20070531103316.GO32105@kernel.dk> References: <20070531103316.GO32105@kernel.dk> Content-Type: text/plain Date: Thu, 31 May 2007 10:33:31 -0500 Message-Id: <1180625611.4514.57.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1658 Lines: 44 On Thu, 2007-05-31 at 12:33 +0200, Jens Axboe wrote: > Hi, > > This patch removes the ->sendfile() hook from the file_operations > structure, and replaces the sys_sendfile() mechanism to be based on > ->splice_read() instead. There should be no functional changes. > > Work to be done: > > - The ext2 xip support needs a splice_read() implementation, currently I > just if 0'ed out the send xip_file_sendfile(). CC'ed Carsten, who > seems to be the author of this code. > > - shmem needs a splice_read() implementation. Optimistically CC'ed Hugh. > > - nfds: The ->rq_sendfile_ok optimization is gone for now. I can't > determine the value of it, but I'm assuming it's there for a reason. > Any chance this can be converted to splice, or use something else than > ->sendfile()? CC'ed Neil. > > - relay: needs a splice_read() implementation. I think Tom already has > one, CC'ed him. > Hi Jens, Yeah, I have it lying around somewhere - the patch I sent you awhile back of an initial version of splice_read() is the last work I did on this. Basically, it worked OK but IIRC there were a couple things in the code that needed fixing. I also modified blktrace to use splice so I could use it for testing; I'll send a patch for that too once I get it working again. Anyway, that was ages ago (sometime last year ;-) so I'm going to have to dig up the code and probably rework it a bit. Tom - 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/