posix-aio-compat: Fix async_conmtext for ioctl
authorAndrew de Quincey <adq@lidskialf.net>
Sun, 8 Aug 2010 20:04:50 +0000 (21:04 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 30 Aug 2010 16:29:22 +0000 (18:29 +0200)
Set the async_context_id field when queuing an async ioctl call

Signed-off-by: Andrew de Quincey <adq@lidskialf.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
posix-aio-compat.c

index a67ffe3..efc5968 100644 (file)
@@ -599,6 +599,7 @@ BlockDriverAIOCB *paio_ioctl(BlockDriverState *bs, int fd,
     acb->aio_type = QEMU_AIO_IOCTL;
     acb->aio_fildes = fd;
     acb->ev_signo = SIGUSR2;
+    acb->async_context_id = get_async_context_id();
     acb->aio_offset = 0;
     acb->aio_ioctl_buf = buf;
     acb->aio_ioctl_cmd = req;