]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: VFS: vfs_default. Pass in struct vfswrap_pwrite_state as the callback data to...
authorJeremy Allison <jra@samba.org>
Fri, 28 Feb 2020 00:49:38 +0000 (16:49 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 8 Mar 2020 18:07:43 +0000 (18:07 +0000)
commit13e25d68385aa951115e0e063ec6a9a281fea4a4
treec2308aab174d19f65b6fcdb710c6a3dccbacb81b
parent86cc7439501ab9b9eb018a18dbbef9567eb9b6f9
s3: VFS: vfs_default. Pass in struct vfswrap_pwrite_state as the callback data to the subreq.

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