s3: smbd: Add async internals of reply_close().
authorJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 22:09:51 +0000 (15:09 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 23 Mar 2020 09:40:45 +0000 (09:40 +0000)
commitfef2054dd0cee95c571ea94edc34ad5bb95deade
treef669fd17bb083eaf694a0c54fa3473933bc6c9d0
parent20290d02a09af16c6f250cd063c910c5fee1cad0
s3: smbd: Add async internals of reply_close().

Waits until all aio requests on the closing fsps
before returning to the client.

Slightly modified version of the existing async
reply_close code, updated to use the wait_queue
pattern standardized in reply_tdis, reply_ulogoffX
and reply_exit.

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

The next commit will remove the old version.

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