diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-22 17:54:36 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:59 -0500 |
commit | 8febfa26846e75d38848255028dfe2d06e5ba941 (patch) | |
tree | a1f01f36d5dfcf3b437b323540bb844fd9825f16 /posix-aio-compat.c | |
parent | 59c7b155aa6e1cbfe8a92e2322ea59ab31965c10 (diff) |
Add qemu_aio_process_queue()
We'll leave some AIO completions unhandled when we can't call the callback.
qemu_aio_process_queue() is used later to run any callbacks that are left and
can be run then.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'posix-aio-compat.c')
-rw-r--r-- | posix-aio-compat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c index e9f789c5cb..4901539b92 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -624,7 +624,8 @@ void *paio_init(void) fcntl(s->rfd, F_SETFL, O_NONBLOCK); fcntl(s->wfd, F_SETFL, O_NONBLOCK); - qemu_aio_set_fd_handler(s->rfd, posix_aio_read, NULL, posix_aio_flush, s); + qemu_aio_set_fd_handler(s->rfd, posix_aio_read, NULL, posix_aio_flush, + posix_aio_process_queue, s); ret = pthread_attr_init(&attr); if (ret) |