Patchwork [08/10] posix-aio-compat: Fix async_conmtext for ioctl

login
register
mail settings
Submitter Kevin Wolf
Date Aug. 30, 2010, 4:32 p.m.
Message ID <1283185953-30639-9-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/63101/
State New
Headers show

Comments

Kevin Wolf - Aug. 30, 2010, 4:32 p.m.
From: Andrew de Quincey <adq@lidskialf.net>

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/posix-aio-compat.c b/posix-aio-compat.c
index a67ffe3..efc5968 100644
--- a/posix-aio-compat.c
+++ b/posix-aio-compat.c
@@ -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;