diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-12-01 19:26:40 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-03 16:38:47 +0000 |
commit | 721671ade77f4046b45893fbb7864ca84b9504cd (patch) | |
tree | 46a5e927a01342c5818e6ba99f137a6ad6fbb9f8 /async.c | |
parent | 0891ee111217101bce683e30ed9f08cf0cfcffd7 (diff) | |
download | qemu-721671ade77f4046b45893fbb7864ca84b9504cd.zip qemu-721671ade77f4046b45893fbb7864ca84b9504cd.tar.gz qemu-721671ade77f4046b45893fbb7864ca84b9504cd.tar.bz2 |
aio: add flag to skip fds to aio_dispatch()
Polling mode will not call ppoll(2)/epoll_wait(2). Therefore we know
there are no fds ready and should avoid looping over fd handlers in
aio_dispatch().
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161201192652.9509-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'async.c')
-rw-r--r-- | async.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -251,7 +251,7 @@ aio_ctx_dispatch(GSource *source, AioContext *ctx = (AioContext *) source; assert(callback == NULL); - aio_dispatch(ctx); + aio_dispatch(ctx, true); return true; } |