Thread (1 message) 1 message, 1 author, 2012-07-13

Re: [PATCH 1/5] aio: Export symbols and struct kiocb_batch for in kernel aio usage

From: Asias He <hidden>
Date: 2012-07-13 01:40:03

Hi James,

On 07/13/2012 01:50 AM, James Bottomley wrote:
On Thu, 2012-07-12 at 23:35 +0800, Asias He wrote:
quoted
This is useful for people who want to use aio in kernel, e.g. vhost-blk.

Signed-off-by: Asias He <redacted>
---
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help