[Qemu-devel] [PATCH 1/2] Add no-op aio emulation stub

2010-05-12 Thread Alexander Graf
We need to be able to do nothing in AIO fashion. Since I suspect this could be useful for more cases than the non flushing, I figured I'd create a new function that does everything AIO-like, but doesn't do anything. Signed-off-by: Alexander Graf --- v1 -> v2: - remove stray define - make a

Re: [Qemu-devel] [PATCH 1/2] Add no-op aio emulation stub

2010-05-10 Thread Stefan Hajnoczi
bdrv_aio_noop_em() could be useful for benchmarking and optimizing the aio code. It serves as a cheap operation that lets us see the cost of the aio roundtrip. Stefan

[Qemu-devel] [PATCH 1/2] Add no-op aio emulation stub

2010-05-10 Thread Alexander Graf
We need to be able to do nothing in AIO fashion. Since I suspect this could be useful for more cases than the non flushing, I figured I'd create a new function that does everything AIO-like, but doesn't do anything. Signed-off-by: Alexander Graf --- block.c | 18 ++ block.h |