From 6475e138821c6673d054c8b873f82a3ed7bfd439 Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Fri, 27 Dec 2019 16:12:37 +0000 Subject: [PATCH] axe linux aio --- Changes | 1 + ev.c | 4 ++-- ev_linuxaio.c | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Changes b/Changes index f332520..f697e65 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,7 @@ TODO: document EV_TSTAMP_T also used (found via cpan tester service). - support a lot more "uncommon" compile time configurations, such as ev_embed enabled but ev_timer disabled. + - the linux aio backend is no longer compiled in by default. 4.31 Fri Dec 20 21:58:29 CET 2019 - handle backends with minimum wait time a bit better by not diff --git a/ev.c b/ev.c index 7be883f..d5db5ff 100644 --- a/ev.c +++ b/ev.c @@ -119,7 +119,7 @@ # if HAVE_LINUX_AIO_ABI_H # ifndef EV_USE_LINUXAIO -# define EV_USE_LINUXAIO EV_FEATURE_BACKENDS +# define EV_USE_LINUXAIO 0 /* was: EV_FEATURE_BACKENDS, always off by default */ # endif # else # undef EV_USE_LINUXAIO @@ -346,7 +346,7 @@ #ifndef EV_USE_LINUXAIO # if __linux /* libev currently assumes linux/aio_abi.h is always available on linux */ -# define EV_USE_LINUXAIO 1 +# define EV_USE_LINUXAIO 0 /* was: 1, always off by default */ # else # define EV_USE_LINUXAIO 0 # endif diff --git a/ev_linuxaio.c b/ev_linuxaio.c index 3e17850..4687a70 100644 --- a/ev_linuxaio.c +++ b/ev_linuxaio.c @@ -270,9 +270,8 @@ linuxaio_modify (EV_P_ int fd, int oev, int nev) ++anfd->egen; } - iocb->io.aio_buf = - (nev & EV_READ ? POLLIN : 0) - | (nev & EV_WRITE ? POLLOUT : 0); + iocb->io.aio_buf = (nev & EV_READ ? POLLIN : 0) + | (nev & EV_WRITE ? POLLOUT : 0); if (nev) {