From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlZpH-00042i-Mf for qemu-devel@nongnu.org; Mon, 12 Oct 2015 05:55:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlZpG-00066U-EP for qemu-devel@nongnu.org; Mon, 12 Oct 2015 05:55:27 -0400 From: Fam Zheng Date: Mon, 12 Oct 2015 17:55:28 +0800 Message-Id: <1444643731-15346-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] aio: Use epoll in aio_poll() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-block@nongnu.org, Stefan Hajnoczi This series adds the ability to use epoll in aio_poll() on Linux. It's switched on in a dynamic way rather than static for two reasons: 1) when the number of fds is not high enough, using epoll has little advantage; 2) when an epoll incompatible fd needs to be handled, we need to fall back. The epoll is enabled when a fd number threshold is met. Fam Zheng (3): aio: Move AioHandler struct to header aio: Introduce aio_context_setup aio: Introduce aio-epoll.c Makefile.objs | 1 + aio-epoll.c | 150 +++++++++++++++++++++++++++++++++++++++++++ aio-posix.c | 31 +++++---- aio-win32.c | 16 ++--- async.c | 14 +++- include/block/aio-internal.h | 47 ++++++++++++++ include/block/aio.h | 5 ++ stubs/Makefile.objs | 1 + stubs/aio-epoll.c | 37 +++++++++++ 9 files changed, 277 insertions(+), 25 deletions(-) create mode 100644 aio-epoll.c create mode 100644 include/block/aio-internal.h create mode 100644 stubs/aio-epoll.c -- 2.6.1