mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
block: drop aio functions that operate on the main AioContext
The main AioContext should be accessed explicitly via qemu_get_aio_context(). Most of the time, using it is not the right thing to do. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
b47ec2c456
commit
87f68d3182
7 changed files with 12 additions and 46 deletions
|
@ -83,7 +83,7 @@ static void co_test_cb(void *opaque)
|
|||
data->ret = 0;
|
||||
active--;
|
||||
|
||||
/* The test continues in test_submit_co, after qemu_aio_wait_all... */
|
||||
/* The test continues in test_submit_co, after aio_poll... */
|
||||
}
|
||||
|
||||
static void test_submit_co(void)
|
||||
|
@ -98,7 +98,7 @@ static void test_submit_co(void)
|
|||
g_assert_cmpint(active, ==, 1);
|
||||
g_assert_cmpint(data.ret, ==, -EINPROGRESS);
|
||||
|
||||
/* qemu_aio_wait_all will execute the rest of the coroutine. */
|
||||
/* aio_poll will execute the rest of the coroutine. */
|
||||
|
||||
while (data.ret == -EINPROGRESS) {
|
||||
aio_poll(ctx, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue