From: Jeremy Allison Date: Fri, 28 Feb 2020 00:53:10 +0000 (-0800) Subject: s3: VFS: vfs_default: Add tevent_req pointer to state struct in vfswrap_fsync_state. X-Git-Tag: ldb-2.2.0~1504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adde71b99d4ab09914072458329d5f1008b77e3;p=thirdparty%2Fsamba.git s3: VFS: vfs_default: Add tevent_req pointer to state struct in vfswrap_fsync_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_default.c b/source3/modules/vfs_default.c index 3425ee31dcb..28b8c04dee4 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1078,6 +1078,7 @@ static ssize_t vfswrap_pwrite_recv(struct tevent_req *req, } struct vfswrap_fsync_state { + struct tevent_req *req; ssize_t ret; int fd; @@ -1102,6 +1103,7 @@ 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;