aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-12-15 14:02:24 +0100
committerKevin Wolf <kwolf@redhat.com>2023-01-24 18:26:41 +0100
commit3d65110f0cd453ac5a5a9c4211902271775eba75 (patch)
treecd5c560e6582f3aac562be4f683da27391ec0909 /block
parent264dcbb2b1e5b66d7a5b08662b200c2b315dce0f (diff)
downloadqemu-3d65110f0cd453ac5a5a9c4211902271775eba75.zip
qemu-3d65110f0cd453ac5a5a9c4211902271775eba75.tar.gz
qemu-3d65110f0cd453ac5a5a9c4211902271775eba75.tar.bz2
block: remove bdrv_coroutine_enter
It has only one caller---inline it and remove the function. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20221215130225.476477-2-pbonzini@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index ba7bf1d..8fbb787 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -1555,7 +1555,7 @@ static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, int64_t offset,
acb->has_returned = false;
co = qemu_coroutine_create(co_entry, acb);
- bdrv_coroutine_enter(blk_bs(blk), co);
+ aio_co_enter(blk_get_aio_context(blk), co);
acb->has_returned = true;
if (acb->rwco.ret != NOT_DONE) {