[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/26] copy-before-write: add missing coroutine_fn annotations
From: |
Paolo Bonzini |
Subject: |
[PATCH 15/26] copy-before-write: add missing coroutine_fn annotations |
Date: |
Fri, 15 Apr 2022 15:18:49 +0200 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
block/copy-before-write.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/block/copy-before-write.c b/block/copy-before-write.c
index a8a06fdc09..5ad9693b13 100644
--- a/block/copy-before-write.c
+++ b/block/copy-before-write.c
@@ -165,9 +165,9 @@ static int coroutine_fn cbw_co_flush(BlockDriverState *bs)
* It's guaranteed that guest writes will not interact in the region until
* cbw_snapshot_read_unlock() called.
*/
-static BlockReq *cbw_snapshot_read_lock(BlockDriverState *bs,
- int64_t offset, int64_t bytes,
- int64_t *pnum, BdrvChild **file)
+static coroutine_fn BlockReq *cbw_snapshot_read_lock(BlockDriverState *bs,
+ int64_t offset, int64_t
bytes,
+ int64_t *pnum, BdrvChild
**file)
{
BDRVCopyBeforeWriteState *s = bs->opaque;
BlockReq *req = g_new(BlockReq, 1);
@@ -197,7 +197,7 @@ static BlockReq *cbw_snapshot_read_lock(BlockDriverState
*bs,
return req;
}
-static void cbw_snapshot_read_unlock(BlockDriverState *bs, BlockReq *req)
+static coroutine_fn void cbw_snapshot_read_unlock(BlockDriverState *bs,
BlockReq *req)
{
BDRVCopyBeforeWriteState *s = bs->opaque;
--
2.35.1
- [PATCH 09/26] iscsi: add missing coroutine_fn annotations, (continued)
- [PATCH 09/26] iscsi: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 11/26] nfs: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 10/26] nbd: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 12/26] nvme: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 14/26] qcow2: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 16/26] curl: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 19/26] throttle: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 20/26] vmdk: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 15/26] copy-before-write: add missing coroutine_fn annotations,
Paolo Bonzini <=
- [PATCH 13/26] parallels: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 17/26] qed: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 18/26] quorum: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 21/26] job: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 22/26] coroutine-lock: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 23/26] raw-format: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 24/26] 9p: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 25/26] migration: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15
- [PATCH 26/26] test-coroutine: add missing coroutine_fn annotations, Paolo Bonzini, 2022/04/15