s3: smbd: Add async internals of reply_exit().
authorJeremy Allison <jra@samba.org>
Thu, 12 Mar 2020 17:59:16 +0000 (10:59 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:29 +0000 (18:03 +0000)
commit8f58feab58afbc7aa214fac2a1728dda68303c6b
tree0dfe1c55737e5f41833bc1ed3e966a88c42ca0af
parent446b64ca66591d8ae5b4bf1aabdd46a1e8cb1c1c
s3: smbd: Add async internals of reply_exit().

Waits until all aio requests on all fsp's owned by this
vuid are finished before returning to the client.

Charges the profile time in the done function. Not strictly
correct but better than the other SMB1 async code that
double-charges profiling in both send and done at the
moment.

Done this way (commented out) so it is a clean
diff and it's clear what is being added.

A later commit will remove the old synchronous version.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c