From: Jeremy Allison Date: Fri, 13 Mar 2020 17:36:03 +0000 (-0700) Subject: Revert "s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster... X-Git-Tag: ldb-2.2.0~1420 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac2993000988231f780cbecc7db9d802f2d1b50;p=thirdparty%2Fsamba.git Revert "s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_fsync_state." This reverts commit c0c088b1b786f0ba248960114191277e91bbba2f. Now we wait for all aio to finish on all SHUTDOWN_CLOSE cases, this is no longer needed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301 Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index d5d402d72ab..4e978f168d6 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1114,7 +1114,6 @@ static int vfs_gluster_renameat(struct vfs_handle_struct *handle, } struct vfs_gluster_fsync_state { - struct tevent_req *req; ssize_t ret; glfs_fd_t *fd; @@ -1145,7 +1144,6 @@ static struct tevent_req *vfs_gluster_fsync_send(struct vfs_handle_struct return NULL; } - state->req = req; state->ret = -1; state->fd = glfd;