vfs_glusterfs: use tevent_req_defer_callback() in order to use the correct event...
authorStefan Metzmacher <metze@samba.org>
Wed, 23 May 2018 06:53:47 +0000 (08:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 18:52:23 +0000 (20:52 +0200)
commit55b1b5568f109f51d7cb3b707bc9ae761b3c44fa
treeea65941a419da8bde4032fc52ae9f2233da7887b
parentefce5587973f4b03ae63b20c7fd68c7daaf77c3a
vfs_glusterfs: use tevent_req_defer_callback() in order to use the correct event context

The callback and _recv() functions should be called from the same
event context that was passed to the _send() function.

In future the completion pipe should be replaced by
tevent_threaded_context_create()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_glusterfs.c