From: Jeremy Allison Date: Fri, 28 Feb 2020 23:33:35 +0000 (-0800) Subject: s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_pread_s... X-Git-Tag: ldb-2.2.0~1501 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e3dc0078ebd6aa79553bf2afa8e72945e23dfb0;p=thirdparty%2Fsamba.git 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 Reviewed-by: Volker Lendecke --- 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;