qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 25/39] blockdev: Pull out blockdev option ext


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH v6 25/39] blockdev: Pull out blockdev option extraction
Date: Wed, 14 Oct 2015 17:12:50 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 12.10.2015 um 22:00 hat Max Reitz geschrieben:
> Extract some of the blockdev option extraction code from blockdev_init()
> into its own function. This simplifies blockdev_init() and will allow
> reusing the code in a different function added in a follow-up patch.
> 
> Signed-off-by: Max Reitz <address@hidden>
> Reviewed-by: Alberto Garcia <address@hidden>

Reviewed-by: Kevin Wolf <address@hidden>

> +#ifdef CONFIG_LINUX_AIO
> +    if ((aio = qemu_opt_get(opts, "aio")) != NULL) {
> +        if (!strcmp(aio, "native")) {
> +            *bdrv_flags |= BDRV_O_NATIVE_AIO;
> +        } else if (!strcmp(aio, "threads")) {
> +            /* this is the default */
> +        } else {
> +           error_setg(errp, "invalid aio option");
> +           return;
> +        }
> +    }
> +#endif

Unrelated to your patch, but didn't we want to remove this #ifdef? I
thought we had already done so... Oh, I've never flushed block-next
after the 2.4 release. :-/

Expect a merge conflict coming up here...

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]