Revert "DEBUG samba_io_uring_ev rpc problem with POLL_ADD using fget() in the kernel...
authorStefan Metzmacher <metze@samba.org>
Tue, 18 Oct 2022 06:19:15 +0000 (08:19 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Feb 2023 09:28:40 +0000 (10:28 +0100)
This reverts commit 8dc11b2fb0d9301b9706824e1a1c4e77a2647534.

source3/lib/global_contexts.c
source3/rpc_server/rpc_worker.c

index b2e3eb15c3bbda2536e77eda60e861d6c59906b5..4e3bbabfffe86745d7e27cb77b32a48e502f4a1b 100644 (file)
 #include <tevent.h>
 #include "lib/util/fault.h"
 #include "lib/util/samba_util.h"
-#include "lib/util/samba_io_uring.h"
 #include "messages.h"
 
 static struct tevent_context *global_event_ctx = NULL;
 
-bool global_event_context_io_uring;
-
 struct tevent_context *global_event_context(void)
 {
        if (!global_event_ctx) {
@@ -39,12 +36,7 @@ struct tevent_context *global_event_context(void)
                 * autofree context, to avoid side effects in forked
                 * children exiting.
                 */
-               if (global_event_context_io_uring) {
-                       global_event_ctx = samba_io_uring_ev_context_create(NULL);
-                       samba_tevent_set_debug(global_event_ctx, "global_event_context");
-               } else {
                global_event_ctx = samba_tevent_context_init(NULL);
-               }
        }
        if (!global_event_ctx) {
                smb_panic("Could not init global event context");
index b077541562b3cf0762cbe5789ef5a85237c8ae0b..d9193cda169cf0505f61cbc11494e2a177eebff9 100644 (file)
@@ -946,7 +946,6 @@ static NTSTATUS register_ep_server(
  * @param[in] private_data Passed to the callback functions
  * @return 0 It should never return except on successful process exit
  */
-extern bool global_event_context_io_uring;
 
 int rpc_worker_main(
        int argc,
@@ -1017,7 +1016,6 @@ int rpc_worker_main(
                .unbecome_root = smbd_unbecome_root,
        };
 
-       global_event_context_io_uring = true;
        closefrom(3);
        talloc_enable_null_tracking();
        frame = talloc_stackframe();