linux-aio: poll ring for completions
commitee68697551cd81186c5b12eba10c158350cf1165
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Dec 2016 19:26:44 +0000 (1 19:26 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Jan 2017 16:38:48 +0000 (3 16:38 +0000)
treed9dace9156a38f83ed94e08b30c195848599d826
parent0062ea0fd601c21f5c7b0d9bd1147fe216010c31
linux-aio: poll ring for completions

The Linux AIO userspace ABI includes a ring that is shared with the
kernel.  This allows userspace programs to process completions without
system calls.

Add an AioContext poll handler to check for completions in the ring.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161201192652.9509-6-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c