[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 26/29] blockdev: always compile in -drive aio= parsin
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 26/29] blockdev: always compile in -drive aio= parsing |
Date: |
Fri, 16 Oct 2015 17:06:11 +0200 |
From: Stefan Hajnoczi <address@hidden>
CONFIG_LINUX_AIO is an implementation detail of raw-posix.c. Don't
mention CONFIG_LINUX_AIO in blockdev.c. Let block drivers decide what
to do with BDRV_O_NATIVE_AIO. They may print an error if it is
unsupported.
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
blockdev.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 6c8cce4..8141b6b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -411,7 +411,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;
@@ -422,7 +421,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)) {
--
1.8.3.1
- [Qemu-devel] [PULL 11/29] block: Convert bs->backing_hd to BdrvChild, (continued)
- [Qemu-devel] [PULL 11/29] block: Convert bs->backing_hd to BdrvChild, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 15/29] block-backend: Add blk_set_bs(), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 17/29] block: Implement bdrv_append() without bdrv_swap(), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 12/29] block: Manage backing file references in bdrv_set_backing_hd(), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 21/29] block: Allow bdrv_unref_child(bs, NULL), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 20/29] block: Remove bdrv_swap(), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 22/29] blkverify: Fix BDS leak in .bdrv_open error path, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 19/29] block: Add and use bdrv_replace_in_backing_chain(), Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 23/29] util - add automated ID generation utility, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 25/29] raw-posix: warn about BDRV_O_NATIVE_AIO if libaio is unavailable, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 26/29] blockdev: always compile in -drive aio= parsing,
Kevin Wolf <=
- [Qemu-devel] [PULL 09/29] block: Convert bs->file to BdrvChild, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 24/29] block: auto-generated node-names, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 27/29] qemu-nbd: always compile in --aio=MODE option, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 28/29] qcow2: Remove forward declaration of QCowAIOCB, Kevin Wolf, 2015/10/16
- [Qemu-devel] [PULL 29/29] blkdebug: Don't confuse image as backing file, Kevin Wolf, 2015/10/16
- Re: [Qemu-devel] [PULL 00/29] Block layer patches, Peter Maydell, 2015/10/18