diff options
author | Fam Zheng <famz@redhat.com> | 2014-08-26 15:15:43 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-29 10:46:58 +0100 |
commit | 0b9caf9b3166c8deb3c4f3a774c2384b069dc29c (patch) | |
tree | ee3f2d7dfc89f4d8e6efa6190534c3680a22a6bd /blockjob.c | |
parent | a9db86b223030bd40bdd81b160788196bc95fe6f (diff) | |
download | qemu-0b9caf9b3166c8deb3c4f3a774c2384b069dc29c.tar.gz qemu-0b9caf9b3166c8deb3c4f3a774c2384b069dc29c.tar.bz2 qemu-0b9caf9b3166c8deb3c4f3a774c2384b069dc29c.zip |
coroutine: Drop co_sleep_ns
block_job_sleep_ns is the only user. Since we are moving towards
AioContext aware code, it's better to use the explicit version and drop
the old one.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'blockjob.c')
-rw-r--r-- | blockjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockjob.c b/blockjob.c index ca0b4e25d0..0689fdd2b5 100644 --- a/blockjob.c +++ b/blockjob.c @@ -205,7 +205,7 @@ void block_job_sleep_ns(BlockJob *job, QEMUClockType type, int64_t ns) if (block_job_is_paused(job)) { qemu_coroutine_yield(); } else { - co_sleep_ns(type, ns); + co_aio_sleep_ns(bdrv_get_aio_context(job->bs), type, ns); } job->busy = true; } |