mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
block: prefer aio_poll to qemu_aio_wait
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
01fb2705bd
commit
b47ec2c456
3 changed files with 4 additions and 4 deletions
2
block.c
2
block.c
|
@ -471,7 +471,7 @@ int bdrv_create(BlockDriver *drv, const char* filename,
|
|||
co = qemu_coroutine_create(bdrv_create_co_entry);
|
||||
qemu_coroutine_enter(co, &cco);
|
||||
while (cco.ret == NOT_DONE) {
|
||||
qemu_aio_wait();
|
||||
aio_poll(qemu_get_aio_context(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue