Received: from eggs.gnu.org ([2001:4830:134:3::10]:44302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIBOX-0001A3-9l for qemu-devel@nongnu.org; Thu, 23 Jul 2015 03:58:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIBOW-0006ea-Cw for qemu-devel@nongnu.org; Thu, 23 Jul 2015 03:58:21 -0400 From: Markus Armbruster References: <1437143029-12100-1-git-send-email-stefanha@redhat.com> <1437143029-12100-3-git-send-email-stefanha@redhat.com> Date: Thu, 23 Jul 2015 09:58:07 +0200 In-Reply-To: <1437143029-12100-3-git-send-email-stefanha@redhat.com> (Stefan Hajnoczi's message of "Fri, 17 Jul 2015 15:23:49 +0100") Message-ID: <871tfzi9v4.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 2/2] blockdev: always compile in -drive aio= parsing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org, qemu-block@nongnu.org Stefan Hajnoczi writes: > CONFIG_LINUX_AIO is an implementation detail of raw-posix.c. Don't > mention CONFIG_LINUX_AIO in blockdev.c. Let raw-posix.c decide what to To be precise: "raw-posix.c or raw-win32.c", or maybe "the block driver". > do with BDRV_O_NATIVE_AIO if CONFIG_LINUX_AIO is not defined. > > Signed-off-by: Stefan Hajnoczi > --- > blockdev.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/blockdev.c b/blockdev.c > index 62a4586..37b91c8 100644 > --- a/blockdev.c > +++ b/blockdev.c > @@ -405,7 +405,6 @@ static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, > bdrv_flags |= BDRV_O_NO_FLUSH; > } > > -#ifdef CONFIG_LINUX_AIO > if ((buf = qemu_opt_get(opts, "aio")) != NULL) { > if (!strcmp(buf, "native")) { > bdrv_flags |= BDRV_O_NATIVE_AIO; > @@ -416,7 +415,6 @@ static BlockBackend *blockdev_init(const char *file, QDict *bs_opts, > goto early_err; > } > } > -#endif > > if ((buf = qemu_opt_get(opts, "format")) != NULL) { > if (is_help_option(buf)) {