Revert "s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster...
authorJeremy Allison <jra@samba.org>
Fri, 13 Mar 2020 17:36:59 +0000 (10:36 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:30 +0000 (18:03 +0000)
This reverts commit 058a7effd00b47e4778f7d680cc9c2a7d40d5fa8.

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_glusterfs.c

index 456e0c8a4989b545e31a536ce618f482fdbf0bfb..7924f123ccab4403a11b0f7db4e6fe3bf8641f9c 100644 (file)
@@ -873,7 +873,6 @@ static ssize_t vfs_gluster_pread_recv(struct tevent_req *req,
 }
 
 struct vfs_gluster_pwrite_state {
-       struct tevent_req *req;
        ssize_t ret;
        glfs_fd_t *fd;
        const void *buf;
@@ -909,7 +908,6 @@ static struct tevent_req *vfs_gluster_pwrite_send(struct vfs_handle_struct
                return NULL;
        }
 
-       state->req = req;
        state->ret = -1;
        state->fd = glfd;
        state->buf = data;