s3: smbd: Add async internals of conn_force_tdis().
authorJeremy Allison <jra@samba.org>
Thu, 12 Mar 2020 16:28:21 +0000 (09:28 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 18:03:29 +0000 (18:03 +0000)
commit4f9e0459cd06f0332083a4a465f49b5f258838fa
treee4391a21bc60cb05d682fa76280b073c91b71232
parentac800ca6bcb43c74a1a6ef508b900e2e6cb532dc
s3: smbd: Add async internals of conn_force_tdis().

Commented out so it can be seen complete as
a diff. The next commit will replace the old
synchronous conn_force_tdis() code with the
new async code.

Uses a wait_queue to cause the force close
requests to stay pending until all outstanding
aio is finished on all file handles opened
on the connection.

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/conn_idle.c