mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 23:49:36 +00: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:
committed by
Kevin Wolf
parent
01fb2705bd
commit
b47ec2c456
@ -483,7 +483,7 @@ static int do_co_write_zeroes(BlockDriverState *bs, int64_t offset, int count,
|
||||
co = qemu_coroutine_create(co_write_zeroes_entry);
|
||||
qemu_coroutine_enter(co, &data);
|
||||
while (!data.done) {
|
||||
qemu_aio_wait();
|
||||
aio_poll(bdrv_get_aio_context(bs), true);
|
||||
}
|
||||
if (data.ret < 0) {
|
||||
return data.ret;
|
||||
@ -2027,7 +2027,7 @@ static const cmdinfo_t resume_cmd = {
|
||||
static int wait_break_f(BlockDriverState *bs, int argc, char **argv)
|
||||
{
|
||||
while (!bdrv_debug_is_suspended(bs, argv[1])) {
|
||||
qemu_aio_wait();
|
||||
aio_poll(bdrv_get_aio_context(bs), true);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user