Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental tevent backed using libaio #339

Open
wants to merge 19 commits into
base: SCALE-v4-19-stable
Choose a base branch
from
3 changes: 3 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Build-Depends: bison,
docbook-xsl,
flex,
libacl1-dev,
libaio1,
libaio-dev,
libarchive-dev,
libblkid-dev,
libbsd-dev,
Expand Down Expand Up @@ -61,6 +63,7 @@ Package: truenas-samba
Architecture: any
Pre-Depends: dpkg (>= 1.15.6~), ${misc:Pre-Depends}
Depends: adduser,
libaio1,
libpam-modules,
libpam-runtime (>= 1.0.1-11),
lsb-base (>= 4.1+Debian),
Expand Down
3 changes: 2 additions & 1 deletion lib/tevent/testsuite.c
Original file line number Diff line number Diff line change
Expand Up @@ -2248,6 +2248,7 @@ struct torture_suite *torture_local_event(TALLOC_CTX *mem_ctx)
torture_suite_add_suite(suite, backend_suite);
}

#if 0
#ifdef HAVE_PTHREAD
torture_suite_add_simple_tcase_const(suite, "threaded_poll_mt",
test_event_context_threaded,
Expand All @@ -2266,7 +2267,7 @@ struct torture_suite *torture_local_event(TALLOC_CTX *mem_ctx)
NULL);

#endif

#endif
torture_suite_add_simple_tcase_const(suite, "tevent_cached_getpid",
test_cached_pid,
NULL);
Expand Down
3 changes: 2 additions & 1 deletion lib/tevent/tevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ static void tevent_backend_init(void)
tevent_poll_init();
tevent_poll_mt_init();
#if defined(HAVE_EPOLL)
tevent_epoll_init();
//tevent_epoll_init();
tevent_libaio_init();
#elif defined(HAVE_SOLARIS_PORTS)
tevent_port_init();
#elif defined(HAVE_KQUEUE)
Expand Down
4 changes: 2 additions & 2 deletions lib/tevent/tevent_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ bool tevent_poll_event_add_fd_internal(struct tevent_context *ev,
struct tevent_fd *fde);
bool tevent_poll_mt_init(void);
#ifdef HAVE_EPOLL
bool tevent_epoll_init(void);
void tevent_epoll_set_panic_fallback(struct tevent_context *ev,
bool tevent_libaio_init(void);
void tevent_libaio_set_panic_fallback(struct tevent_context *ev,
bool (*panic_fallback)(struct tevent_context *ev,
bool replay));
#endif
Expand Down
Loading