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 a67ffe3113c3a81b385b52f769fda3fab57e4c87..efc59683c03e79613587bdd9ec80d9a400a321f3 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;