diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-02-13 14:05:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-02-13 16:02:13 +0100 |
commit | 1d949fe742f3470010ee032b6b465857cc41d582 (patch) | |
tree | 06c49e1521be72c4efcefc4f28f45d90860720bc /lib/tevent/tevent.c | |
parent | f131718c607eba5e94e32ae6c4ce81d65ec98718 (diff) | |
download | samba-1d949fe742f3470010ee032b6b465857cc41d582.tar.gz samba-1d949fe742f3470010ee032b6b465857cc41d582.tar.bz2 samba-1d949fe742f3470010ee032b6b465857cc41d582.zip |
lib/tevent: remove broken tevent_aio support
It makes no sense to support aio events because,
the current implementation was based on IOCB_CMD_EPOLL_WAIT
which never made it into the main kernel tree.
The native linux aio can be used with select/epoll
using eventfd(), which means we can implement aio
with fd events and implement aio outside of tevent.
metze
Diffstat (limited to 'lib/tevent/tevent.c')
-rw-r--r-- | lib/tevent/tevent.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index ea16fa1e07..4b22e33b34 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -112,9 +112,6 @@ static void tevent_backend_init(void) #ifdef HAVE_EPOLL tevent_epoll_init(); #endif -#ifdef HAVE_LINUX_AIO - tevent_aio_init(); -#endif } /* @@ -260,22 +257,6 @@ struct tevent_fd *_tevent_add_fd(struct tevent_context *ev, } /* - add a disk aio event -*/ -struct tevent_aio *_tevent_add_aio(struct tevent_context *ev, - TALLOC_CTX *mem_ctx, - struct iocb *iocb, - tevent_aio_handler_t handler, - void *private_data, - const char *handler_name, - const char *location) -{ - if (ev->ops->add_aio == NULL) return NULL; - return ev->ops->add_aio(ev, mem_ctx, iocb, handler, private_data, - handler_name, location); -} - -/* set a close function on the fd event */ void tevent_fd_set_close_fn(struct tevent_fd *fde, |