Revert "s3: VFS: vfs_default: Add tevent_req pointer to state struct in vfswrap_fsync...
authorJeremy Allison <jra@samba.org>
Fri, 13 Mar 2020 17:39:07 +0000 (10:39 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:31 +0000 (18:03 +0000)
This reverts commit 4adde71b99d4ab09914072458329d5f1008b77e3.

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 <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_default.c

index 28b8c04dee42eb8cd320bd90be19bcf064c58c99..3425ee31dcbb33728e9ec43d1a035597afcee37c 100644 (file)
@@ -1078,7 +1078,6 @@ static ssize_t vfswrap_pwrite_recv(struct tevent_req *req,
 }
 
 struct vfswrap_fsync_state {
-       struct tevent_req *req;
        ssize_t ret;
        int fd;
 
@@ -1103,7 +1102,6 @@ static struct tevent_req *vfswrap_fsync_send(struct vfs_handle_struct *handle,
                return NULL;
        }
 
-       state->req = req;
        state->ret = -1;
        state->fd = fsp->fh->fd;