]> git.proxmox.com Git - mirror_qemu.git/commit - block/raw-posix.c
block/raw-posix: implement .bdrv_detach/attach_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:47 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commitc2f3426c9bba0195b15a919587f794b110a2dcfc
tree8d3925475b69cbf07749e59a813288cd9b5e0276
parente3625d3d6ae8029fc20262ac3848421ec281446f
block/raw-posix: implement .bdrv_detach/attach_aio_context()

Drop the assumption that we're using the main AioContext for Linux AIO.
Convert the Linux AIO event notifier to use aio_set_event_notifier().

The .bdrv_detach/attach_aio_context() interfaces also need to be
implemented to move the event notifier handler from the old to the new
AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c
block/raw-aio.h
block/raw-posix.c