s3: VFS: vfs_glusterfs. Pass in struct vfs_gluster_fsync_state as the callback data...
authorJeremy Allison <jra@samba.org>
Fri, 28 Feb 2020 23:59:16 +0000 (15:59 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 8 Mar 2020 18:07:44 +0000 (18:07 +0000)
commitcdde55a69d0dacd2f9939c2f00cd356c0186f791
tree487dc885d904d859a3d5056fbf3644001a355339
parentc0c088b1b786f0ba248960114191277e91bbba2f
s3: VFS: vfs_glusterfs. Pass in struct vfs_gluster_fsync_state as the callback data to the subreq.

Find the req we're finishing off by looking inside vfs_gluster_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 vfs_gluster_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_glusterfs.c