diff options
author | Jeremy Allison <jra@samba.org> | 2020-02-28 15:33:35 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-03-08 18:07:43 +0000 |
commit | 0e3dc0078ebd6aa79553bf2afa8e72945e23dfb0 (patch) | |
tree | f33e87922ec94cbe1f47d7e5583d343a6df0e365 /source3 | |
parent | 18671534e42f66b904e51c3fbe887e998ff79493 (diff) | |
download | samba-0e3dc0078ebd6aa79553bf2afa8e72945e23dfb0.tar.gz |
s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_pread_state.
We will need this to detect when this request is outstanding but
has been destroyed in a SHUTDOWN_CLOSE on this file.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_glusterfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index d4b68fba376..6598aadad17 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -713,6 +713,7 @@ static ssize_t vfs_gluster_pread(struct vfs_handle_struct *handle, } struct vfs_gluster_pread_state { + struct tevent_req *req; ssize_t ret; glfs_fd_t *fd; void *buf; @@ -748,6 +749,7 @@ static struct tevent_req *vfs_gluster_pread_send(struct vfs_handle_struct return NULL; } + state->req = req; state->ret = -1; state->fd = glfd; state->buf = data; |