]> git.proxmox.com Git - mirror_qemu.git/commit - block/nbd-client.h
nbd: implement .bdrv_detach/attach_aio_context()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 8 May 2014 14:34:43 +0000 (16:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 4 Jun 2014 07:56:11 +0000 (09:56 +0200)
commit69447cd8f361dbb6c752bd18b15322d27493ca91
tree7ec34be1e9f1b7bf6ab87f6e047885d1e15b1ea1
parent80cf6257668ec78537b02af44e059bdc46c30416
nbd: implement .bdrv_detach/attach_aio_context()

Drop the assumption that we're using the main AioContext.  Convert
qemu_aio_set_fd_handler() calls to aio_set_fd_handler().

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

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nbd-client.c
block/nbd-client.h
block/nbd.c