diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-07 15:18:02 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-07-09 15:50:11 +0200 |
commit | 87f68d318222563822b5c6b28192215fc4b4e441 (patch) | |
tree | 6e7a940dd5d692995b94d3c937f6398be398799a /tests | |
parent | b47ec2c4562117728be36ec2edfbdf9ef2868c6e (diff) | |
download | hqemu-87f68d318222563822b5c6b28192215fc4b4e441.zip hqemu-87f68d318222563822b5c6b28192215fc4b4e441.tar.gz |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-thread-pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-thread-pool.c b/tests/test-thread-pool.c index aa156bc..f40b7fc 100644 --- a/tests/test-thread-pool.c +++ b/tests/test-thread-pool.c @@ -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); |