aboutsummaryrefslogtreecommitdiffstats
path: root/linux-aio.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-09-19 17:05:12 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-20 14:34:17 +0200
commitcf26a4e6f82c5fa2efd8e7dc43d2496b14b0e595 (patch)
treed1ea5324b69473ae2ec5e524ea38ecec456966d3 /linux-aio.c
parente1d3b254999bd628c7defdda860422baddb73781 (diff)
linux-aio: remove process requests callback
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-aio.c')
-rw-r--r--linux-aio.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/linux-aio.c b/linux-aio.c
index 5265a029b..bffa6cd0e 100644
--- a/linux-aio.c
+++ b/linux-aio.c
@@ -68,15 +68,6 @@ static void qemu_laio_process_completion(struct qemu_laio_state *s,
qemu_aio_release(laiocb);
}
-/*
- * All requests are directly processed when they complete, so there's nothing
- * left to do during qemu_aio_wait().
- */
-static int qemu_laio_process_requests(void *opaque)
-{
- return 0;
-}
-
static void qemu_laio_completion_cb(void *opaque)
{
struct qemu_laio_state *s = opaque;
@@ -215,7 +206,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, qemu_laio_process_requests, s);
+ qemu_laio_flush_cb, NULL, s);
return s;