#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) {
* 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");
* @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,
.unbecome_root = smbd_unbecome_root,
};
- global_event_context_io_uring = true;
closefrom(3);
talloc_enable_null_tracking();
frame = talloc_stackframe();