qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v9 07/17] blockdev: adds bdrv_parse_aio to use i


From: Aarushi Mehta
Subject: Re: [Qemu-devel] [PATCH v9 07/17] blockdev: adds bdrv_parse_aio to use io_uring
Date: Wed, 7 Aug 2019 17:35:54 +0530

On Wed, 7 Aug, 2019, 17:15 Julia Suvorova, <address@hidden> wrote:

> On Fri, Aug 2, 2019 at 1:41 AM Aarushi Mehta <address@hidden>
> wrote:
> > +int bdrv_parse_aio(const char *mode, int *flags)
> > +{
> > +    if (!strcmp(mode, "threads")) {
> > +        /* do nothing, default */
> > +    } else if (!strcmp(mode, "native")) {
> > +        *flags |= BDRV_O_NATIVE_AIO;
>
> This 'if' should be covered with CONFIG_LINUX_AIO.
>

The aio=native definition is shared with Windows hosts' native aio and will
break if it was covered.

file-posix handles the case.

Best regards, Julia Suvorova.
>
> > +#ifdef CONFIG_LINUX_IO_URING
> > +    } else if (!strcmp(mode, "io_uring")) {
> > +        *flags |= BDRV_O_IO_URING;
> > +#endif
> > +    } else {
> > +        return -1;
> > +    }
> > +
> > +    return 0;
> > +}
>


reply via email to

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