From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH 1/5] aio: Export symbols and struct kiocb_batch for in kernel aio usage Date: Fri, 13 Jul 2012 09:40:03 +0800 Message-ID: <4FFF7C73.2060707@redhat.com> References: <1342107302-28116-1-git-send-email-asias@redhat.com> <1342107302-28116-2-git-send-email-asias@redhat.com> <1342115416.3021.60.camel@dabdike.int.hansenpartnership.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, Benjamin LaHaise , Alexander Viro , "Michael S. Tsirkin" , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org To: James Bottomley Return-path: In-Reply-To: <1342115416.3021.60.camel@dabdike.int.hansenpartnership.com> Sender: owner-linux-aio@kvack.org List-Id: linux-fsdevel.vger.kernel.org Hi James, On 07/13/2012 01:50 AM, James Bottomley wrote: > On Thu, 2012-07-12 at 23:35 +0800, Asias He wrote: >> This is useful for people who want to use aio in kernel, e.g. vhost-blk. >> >> Signed-off-by: Asias He >> --- >> fs/aio.c | 37 ++++++++++++++++++------------------- >> include/linux/aio.h | 21 +++++++++++++++++++++ >> 2 files changed, 39 insertions(+), 19 deletions(-) > > Um, I think you don't quite understand how aio in the kernel would work; > it's not as simple as just exporting the interfaces. There's already a > (very long) patch set from oracle to do this so loop can use aio: > > http://marc.info/?l=linux-fsdevel&m=133312234313122 Oh, I did not see this patch set. Thanks for pointing it out! This bit hasn't merged, right? I'd love to use the aio_kernel_() interface if it is merged. It will simply vhost-blk. Due to lack of better kernel aio interface, we are currently doing io_setup, io_submit, etc. in vhost-blk on our own. -- Asias -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org