This reverts commit
182991c26c8149c79b13a277b9822efc49fd1df0.
See the discussion in
https://lists.samba.org/archive/samba-technical/2018-December/131731.html
for the reasoning behind this revert.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(int)from_now.tv_sec, (int)from_now.tv_usec));
}
- /*
- * brl_timeout_fn() calls change_to_root_user()
- * so we can use sconn->root_ev_ctx.
- */
- sconn->smb1.locks.brl_timeout = tevent_add_timer(sconn->root_ev_ctx,
+ sconn->smb1.locks.brl_timeout = tevent_add_timer(sconn->ev_ctx,
NULL, next_timeout,
brl_timeout_fn, sconn);
if (sconn->smb1.locks.brl_timeout == NULL) {
(int)from_now.tv_sec, (int)from_now.tv_usec));
}
- /*
- * brl_timeout_fn() calls change_to_root_user()
- * so we can use sconn->root_ev_ctx.
- */
sconn->smb2.locks.brl_timeout = tevent_add_timer(
- sconn->root_ev_ctx,
+ sconn->ev_ctx,
NULL,
next_timeout,
brl_timeout_fn,