s3: VFS: vfs_default. Pass in struct vfswrap_pread_state as the callback data to...
authorJeremy Allison <jra@samba.org>
Fri, 28 Feb 2020 00:34:51 +0000 (16:34 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 8 Mar 2020 18:07:43 +0000 (18:07 +0000)
commite102908f112866d657b8c0cd6a5b217d070210c8
tree6d21085fbce0d27467be3e4066f61244d890e3e4
parent594a435b33e8447625ca83b50daec2d08cf66d64
s3: VFS: vfs_default. Pass in struct vfswrap_pread_state as the callback data to the subreq.

Find the req we're finishing off by looking inside vfswrap_pread_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_pread_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