s3: VFS: vfs_default. Pass in struct vfswrap_fsync_state as the callback data to...
authorJeremy Allison <jra@samba.org>
Fri, 28 Feb 2020 00:54:47 +0000 (16:54 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 8 Mar 2020 18:07:43 +0000 (18:07 +0000)
commitd623779913e0d4a46d7e299dc41b5c83cb127872
tree6c67264097ce4c18e6f8a6bc8f7ea8dfdf1d3f6c
parent4adde71b99d4ab09914072458329d5f1008b77e3
s3: VFS: vfs_default. Pass in struct vfswrap_fsync_state as the callback data to the subreq.

Find the req we're finishing off by looking inside vfswrap_fsync_state.
In a shutdown close the caller calls talloc_free(req), so we can't
access it directly as callback data.

The next commit will NULL out the vfswrap_fsync_state->req pointer
when a caller calls talloc_free(req), and the request is still in
flight.

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>
source3/modules/vfs_default.c