[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 18/25] block/coroutines: I/O API
From: |
Emanuele Giuseppe Esposito |
Subject: |
[PATCH v4 18/25] block/coroutines: I/O API |
Date: |
Mon, 25 Oct 2021 06:17:28 -0400 |
block coroutines functions run in different aiocontext, and are
not protected by the BQL. Therefore are I/O.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
---
block/coroutines.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/block/coroutines.h b/block/coroutines.h
index c8c14a29c8..c61abd271a 100644
--- a/block/coroutines.h
+++ b/block/coroutines.h
@@ -29,6 +29,12 @@
/* For blk_bs() in generated block/block-gen.c */
#include "sysemu/block-backend.h"
+/*
+ * I/O API functions. These functions are thread-safe.
+ *
+ * See include/block/block-io.h for more information about
+ * the I/O API.
+ */
int coroutine_fn bdrv_co_check(BlockDriverState *bs,
BdrvCheckResult *res, BdrvCheckMode fix);
--
2.27.0
- [PATCH v4 11/25] include/block/blockjob.h: global state API, (continued)
- [PATCH v4 11/25] include/block/blockjob.h: global state API, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 12/25] assertions for blockob.h global state API, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 10/25] assertions for blockjob_int.h, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 14/25] include/systemu/blockdev.h: global state API, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 13/25] include/sysemu/blockdev.h: move drive_add and inline drive_def, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 15/25] assertions for blockdev.h global state API, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 19/25] block_int-common.h: split function pointers in BlockDriver, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 17/25] block/copy-before-write.h: global state API + assertions, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 16/25] include/block/snapshot: global state API + assertions, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 18/25] block/coroutines: I/O API,
Emanuele Giuseppe Esposito <=
- [PATCH v4 24/25] job.h: split function pointers in JobDriver, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 21/25] block_int-common.h: split function pointers in BdrvChildClass, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 22/25] block_int-common.h: assertions in the callers of BdrvChildClass function pointers, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 20/25] block_int-common.h: assertion in the callers of BlockDriver function pointers, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 23/25] block-backend-common.h: split function pointers in BlockDevOps, Emanuele Giuseppe Esposito, 2021/10/25
- [PATCH v4 25/25] job.h: assertions in the callers of JobDriver funcion pointers, Emanuele Giuseppe Esposito, 2021/10/25
- Re: [PATCH v4 00/25] block layer: split block APIs in global state and I/O, Philippe Mathieu-Daudé, 2021/10/25
- Re: [PATCH v4 00/25] block layer: split block APIs in global state and I/O, Stefan Hajnoczi, 2021/10/28