qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH 0/3] aio: Use epoll in aio_poll()


From: Fam Zheng
Subject: [Qemu-block] [PATCH 0/3] aio: Use epoll in aio_poll()
Date: Mon, 12 Oct 2015 17:55:28 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]