From 5df1fda0f5f775c0ccf23412b29b2fd8b013156e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 25 Jun 2012 12:23:22 +0200 Subject: s3: Restore async i/o with the "native" AIO interface eff3609 moved the async signal handler initialization to later in the process to enable aio_fork and aio_pthread on platforms without realtime signals. This commit broke the use of the native aio interface. aio_pending_size is initialized to 0, so aio.c will not allow async i/0 at all if modules do not set that variable correctly. Initialize to 100 right from the start. Signed-off-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Jun 26 14:08:22 CEST 2012 on sn-devel-104 --- source3/smbd/globals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/globals.c') diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 7c4ffec099..87ecff70a3 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -28,7 +28,7 @@ #if defined(HAVE_AIO) struct aio_extra *aio_list_head = NULL; struct tevent_signal *aio_signal_event = NULL; -int aio_pending_size = 0; +int aio_pending_size = 100; /* tevent supports 100 signals SA_SIGINFO */ int outstanding_aio_calls = 0; #endif -- cgit