qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v2 03/15] block/block: add BDRV flag for io_uring


From: Kevin Wolf
Subject: Re: [PATCH v2 03/15] block/block: add BDRV flag for io_uring
Date: Mon, 11 Nov 2019 11:57:59 +0100
User-agent: Mutt/1.12.1 (2019-06-15)

Am 25.10.2019 um 18:04 hat Stefan Hajnoczi geschrieben:
> From: Aarushi Mehta <address@hidden>
> 
> Signed-off-by: Aarushi Mehta <address@hidden>
> Reviewed-by: Maxim Levitsky <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
>  include/block/block.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/block/block.h b/include/block/block.h
> index 89606bd9f8..bdb48dcd1b 100644
> --- a/include/block/block.h
> +++ b/include/block/block.h
> @@ -126,6 +126,7 @@ typedef struct HDGeometry {
>                                        ignoring the format layer */
>  #define BDRV_O_NO_IO       0x10000 /* don't initialize for I/O */
>  #define BDRV_O_AUTO_RDONLY 0x20000 /* degrade to read-only if opening 
> read-write fails */
> +#define BDRV_O_IO_URING    0x40000 /* use io_uring instead of the thread 
> pool */

Why do we need a new (global!) flag rather than a driver-specific option
for file-posix? This looks wrong to me, the flag has no sensible meaning
for any other driver.

(Yes, BDRV_O_NATIVE_AIO is wrong, too, but compatibility means we can't
remove it easily.)

Kevin




reply via email to

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