smbd: Fix a connection run-down race condition
authorVolker Lendecke <vl@samba.org>
Wed, 19 Jul 2017 12:51:33 +0000 (14:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 23 Jul 2017 20:25:23 +0000 (22:25 +0200)
commit378886b89c3570c8f4fee27a196dd347006d1445
treee0c3bc63a95d2f85f734aa6aa25242b2492bec61
parentc1e5a2283e9d239e8a9ddbc02df2feb31180cfef
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.

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

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 0181fcc4aaa730e3a88ff5d397145332f4013950)
source3/modules/vfs_default.c