Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Oct 2002 14:09:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Oct 2002 14:09:38 -0500 Received: from citi.umich.edu ([141.211.92.141]:17828 "HELO citi.umich.edu") by vger.kernel.org with SMTP id ; Tue, 29 Oct 2002 14:09:37 -0500 Date: Tue, 29 Oct 2002 14:15:56 -0500 (EST) From: Chuck Lever To: Badari Pulavarty Cc: , lkml , Subject: Re: [RFC] generic_file_direct_IO() argument changes for AIO In-Reply-To: <200210291819.g9TIJvO16528@eng2.beaverton.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 31 On Tue, 29 Oct 2002, Badari Pulavarty wrote: > Inorder to support AIO for raw/O_DIRECT, I need to add "struct kiocb *" > to generic_file_direct_IO() and all direct_IO() ops. > > generic_file_direct_IO(int rw, struct file *file, const struct iovec *iov, > loff_t offset, unsigned long nr_segs) > > Instead of adding a new argument, I propose replace > > "struct file *file" argument with "struct kiocb *iocb" > > One can get "filp" from iocb->ki_filp. > > Any objections ? here's a naive objection. is there any preallocated data structure associated with a kiocb other than the struct itself? if there is, that will have some scalability impact for applications like Oracle that like to create a very large database by opening thousands of files. - Chuck Lever -- corporate: personal: - 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/