[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 9/9] vmdk: make vmdk_is_cid_valid a coroutine_fn
From: |
Paolo Bonzini |
Subject: |
[PATCH 9/9] vmdk: make vmdk_is_cid_valid a coroutine_fn |
Date: |
Thu, 9 Mar 2023 09:44:56 +0100 |
Functions that can do I/O are prime candidates for being coroutine_fns. Make
the
change for the one that is itself called only from coroutine_fns. Unfortunately
vmdk does not use a coroutine_fn for the bulk of the open (like qcow2 does) so
vmdk_read_cid cannot have the same treatment.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
block/vmdk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index f5f49018fe4a..3f8c731e32e8 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -376,7 +376,7 @@ out:
return ret;
}
-static int vmdk_is_cid_valid(BlockDriverState *bs)
+static int coroutine_fn vmdk_is_cid_valid(BlockDriverState *bs)
{
BDRVVmdkState *s = bs->opaque;
uint32_t cur_pcid;
--
2.39.2
- [PATCH 0/9] (mostly) block: add more coroutine_fn annotations, use bdrv/blk_co_*, Paolo Bonzini, 2023/03/09
- [PATCH 2/9] blkdebug: add missing coroutine_fn annotation, Paolo Bonzini, 2023/03/09
- [PATCH 1/9] vvfat: mark various functions as coroutine_fn, Paolo Bonzini, 2023/03/09
- [PATCH 3/9] mirror: make mirror_flush a coroutine_fn, do not use co_wrappers, Paolo Bonzini, 2023/03/09
- [PATCH 5/9] 9pfs: mark more coroutine_fns, Paolo Bonzini, 2023/03/09
- [PATCH 4/9] nbd: mark more coroutine_fns, do not use co_wrappers, Paolo Bonzini, 2023/03/09
- [PATCH 7/9] tests: mark more coroutine_fns, Paolo Bonzini, 2023/03/09
- [PATCH 6/9] qemu-pr-helper: mark more coroutine_fns, Paolo Bonzini, 2023/03/09
- [PATCH 9/9] vmdk: make vmdk_is_cid_valid a coroutine_fn,
Paolo Bonzini <=
- [PATCH 8/9] qcow2: mark various functions as coroutine_fn and GRAPH_RDLOCK, Paolo Bonzini, 2023/03/09
- Re: [PATCH 0/9] (mostly) block: add more coroutine_fn annotations, use bdrv/blk_co_*, Kevin Wolf, 2023/03/23