[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 18/25] block/coroutines: I/O API
From: |
Emanuele Giuseppe Esposito |
Subject: |
[PATCH v3 18/25] block/coroutines: I/O API |
Date: |
Tue, 12 Oct 2021 04:48:59 -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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/block/coroutines.h b/block/coroutines.h
index 514d169d23..079de537a0 100644
--- a/block/coroutines.h
+++ b/block/coroutines.h
@@ -27,6 +27,13 @@
#include "block/block_int.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);
int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp);
--
2.27.0
- [PATCH v3 09/25] include/block/blockjob_int.h: split header into I/O and GS API, (continued)
- [PATCH v3 09/25] include/block/blockjob_int.h: split header into I/O and GS API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 11/25] include/block/blockjob.h: global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 13/25] include/sysemu/blockdev.h: move drive_add and inline drive_def, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 12/25] assertions for blockob.h global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 19/25] block_int-common.h: split function pointers in BlockDriver, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 14/25] include/systemu/blockdev.h: global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 18/25] block/coroutines: I/O API,
Emanuele Giuseppe Esposito <=
- [PATCH v3 17/25] block/copy-before-write.h: global state API + assertions, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 20/25] block_int-common.h: assertion in the callers of BlockDriver function pointers, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 16/25] include/block/snapshot: global state API + assertions, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 21/25] block_int-common.h: split function pointers in BdrvChildClass, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 15/25] assertions for blockdev.h global state API, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 22/25] block_int-common.h: assertions in the callers of BdrvChildClass function pointers, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 25/25] job.h: assertions in the callers of JobDriver funcion pointers, Emanuele Giuseppe Esposito, 2021/10/12
- [PATCH v3 24/25] job.h: split function pointers in JobDriver, Emanuele Giuseppe Esposito, 2021/10/12