smbd: Fix a connection run-down race condition
authorVolker Lendecke <vl@samba.org>
Wed, 19 Jul 2017 12:51:33 +0000 (14:51 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 19 Jul 2017 19:22:12 +0000 (21:22 +0200)
commit0181fcc4aaa730e3a88ff5d397145332f4013950
treecdd33187f96c1d1ff18ea012075a613fb8b6b6a5
parent1b7b7a9275af7cc9687aaf8b73015fe2d696394b
smbd: Fix a connection run-down race condition

When we do a server exit with active aio jobs, we need to keep the
aio state active for the helper thread. Right now I don't see another
chance than to leak memory in this case. And, I don't really oversee
how cancelling requests works in this case, but this does fix crashes
seen at a customer site.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c