linux-aio: consume events in userspace instead of calling io_getevents
commit9e909a582916f313d9614ccdf994d4d5ad6e2e0f
authorRoman Pen <roman.penyaev@profitbricks.com>
Tue, 19 Jul 2016 12:27:41 +0000 (19 14:27 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Sep 2016 10:00:55 +0000 (13 11:00 +0100)
treefacd4dc4048f3cc5a0dfdb9635bee5b28f365e24
parent0647d47cc184da587c76743546b6af6dfdb8f1da
linux-aio: consume events in userspace instead of calling io_getevents

AIO context in userspace is represented as a simple ring buffer, which
can be consumed directly without entering the kernel, which obviously
can bring some performance gain.  QEMU does not use timeout value for
waiting for events completions, so we can consume all events from
userspace.

Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>
Message-id: 1468931263-32667-2-git-send-email-roman.penyaev@profitbricks.com
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c