s3: smbd: Add async internals of reply_ulogoffX.
authorJeremy Allison <jra@samba.org>
Thu, 12 Mar 2020 17:11:14 +0000 (10:11 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:29 +0000 (18:03 +0000)
commit4dd3012cb1b5e000ccf68d2601dbdbcb7ff538b5
tree267720a47769399e66e4f004cbd0677c4b02b56f
parent7613998e10c5f13c896667257fdef33824a45d2a
s3: smbd: Add async internals of reply_ulogoffX.

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