From: Ralph Boehme Date: Thu, 27 Dec 2018 14:26:08 +0000 (+0100) Subject: Revert "vfs_glusterfs: explain that/why we use the raw tevent_context in init_gluster... X-Git-Tag: talloc-2.1.15~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec96ac70989fcd65abbde04b233d2282f6bf398;p=thirdparty%2Fsamba.git Revert "vfs_glusterfs: explain that/why we use the raw tevent_context in init_gluster_aio()" This reverts commit b0af5715b0a7592a9728e0b76f653b9ab6228708. 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 Reviewed-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 9b623a4658b..c9d57b4b646 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -766,16 +766,7 @@ static bool init_gluster_aio(struct vfs_handle_struct *handle) read_fd = fds[0]; write_fd = fds[1]; - /* - * We use the raw tevent context here, - * as this is a global event handler. - * - * The tevent_req_defer_callback() - * calls will make sure the results - * of async calls are propagated - * to the correct tevent_context. - */ - aio_read_event = tevent_add_fd(handle->conn->sconn->raw_ev_ctx, + aio_read_event = tevent_add_fd(handle->conn->sconn->ev_ctx, NULL, read_fd, TEVENT_FD_READ,