From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56225 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtL2Y-0004nR-Pw for qemu-devel@nongnu.org; Wed, 08 Sep 2010 09:50:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtKiZ-0005Z1-8t for qemu-devel@nongnu.org; Wed, 08 Sep 2010 09:29:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5021) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtKiZ-0005Yr-2c for qemu-devel@nongnu.org; Wed, 08 Sep 2010 09:29:39 -0400 From: Kevin Wolf Date: Wed, 8 Sep 2010 15:29:25 +0200 Message-Id: <1283952582-17498-9-git-send-email-kwolf@redhat.com> In-Reply-To: <1283952582-17498-1-git-send-email-kwolf@redhat.com> References: <1283952582-17498-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 08/25] posix-aio-compat: Fix async_conmtext for ioctl List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Andrew de Quincey Set the async_context_id field when queuing an async ioctl call Signed-off-by: Andrew de Quincey Signed-off-by: Kevin Wolf --- posix-aio-compat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.2.2