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

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 4bb4adf5f7e4642d835f9dae8acf2b9a9f4d6d1c..a30f3ba1d31646e66c8c45eb933c892489ab69b3 100644 (file)
@@ -780,7 +780,6 @@ static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, cons
 }
 
 struct vfswrap_pread_state {
-       struct tevent_req *req;
        ssize_t ret;
        int fd;
        void *buf;
@@ -810,7 +809,6 @@ static struct tevent_req *vfswrap_pread_send(struct vfs_handle_struct *handle,
                return NULL;
        }
 
-       state->req = req;
        state->ret = -1;
        state->fd = fsp->fh->fd;
        state->buf = data;