]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block/block: add BDRV flag for io_uring
authorAarushi Mehta <mehta.aaru20@gmail.com>
Mon, 20 Jan 2020 14:18:46 +0000 (14:18 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 30 Jan 2020 20:59:41 +0000 (20:59 +0000)
Signed-off-by: Aarushi Mehta <mehta.aaru20@gmail.com>
Reviewed-by: Maxim Levitsky <maximlevitsky@gmail.com>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20200120141858.587874-4-stefanha@redhat.com
Message-Id: <20200120141858.587874-4-stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/block/block.h

index 23c76421e47fbe980ed10371b87565f1c381ce1d..19184d58507f0ef9806b2a01c7bf17a1b0dd2e30 100644 (file)
@@ -114,6 +114,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 */
 
 #define BDRV_O_CACHE_MASK  (BDRV_O_NOCACHE | BDRV_O_NO_FLUSH)