aboutsummaryrefslogtreecommitdiff
path: root/linux-aio.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-10-22 17:54:36 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:59 -0500
commit8febfa26846e75d38848255028dfe2d06e5ba941 (patch)
treea1f01f36d5dfcf3b437b323540bb844fd9825f16 /linux-aio.c
parent59c7b155aa6e1cbfe8a92e2322ea59ab31965c10 (diff)
downloadqemu-8febfa26846e75d38848255028dfe2d06e5ba941.zip
qemu-8febfa26846e75d38848255028dfe2d06e5ba941.tar.gz
qemu-8febfa26846e75d38848255028dfe2d06e5ba941.tar.bz2
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 'linux-aio.c')
-rw-r--r--linux-aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-aio.c b/linux-aio.c
index f53a08c..19ad36d 100644
--- a/linux-aio.c
+++ b/linux-aio.c
@@ -192,7 +192,7 @@ void *laio_init(void)
goto out_close_efd;
qemu_aio_set_fd_handler(s->efd, qemu_laio_completion_cb,
- NULL, qemu_laio_flush_cb, s);
+ NULL, qemu_laio_flush_cb, NULL, s);
return s;