linux-aio: remove process requests callback
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Sep 2011 15:05:12 +0000 (17:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 20 Sep 2011 12:34:17 +0000 (14:34 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
linux-aio.c

index 5265a029b2bbd39c286fd3add46c845dfbbc4ebd..bffa6cd0e393fe5b5b125ca8cdf0d3b795aad76b 100644 (file)
@@ -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;