From patchwork Wed Sep 8 13:29:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 64149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 76A1CB6EF7 for ; Thu, 9 Sep 2010 00:22:59 +1000 (EST) Received: from localhost ([127.0.0.1]:53157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtLY8-00041t-7f for incoming@patchwork.ozlabs.org; Wed, 08 Sep 2010 10:22:56 -0400 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 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o88DTZq4008303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Sep 2010 09:29:35 -0400 Received: from dhcp-5-188.str.redhat.com (dhcp-5-175.str.redhat.com [10.32.5.175]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o88DTNnM001351; Wed, 8 Sep 2010 09:29:34 -0400 From: Kevin Wolf To: anthony@codemonkey.ws 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 08/25] posix-aio-compat: Fix async_conmtext for ioctl X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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;