s3-aio: Panic if we try to close a fsp with outstanding aio requests
commit8ef968a23dffb2e1c1518f7489d4ab0b14a71118
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jul 2012 20:43:06 +0000 (17 22:43 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 19 Jul 2012 01:40:17 +0000 (19 03:40 +0200)
tree9e9cd5237df264028fb1752ffd82a5e1ea358c62
parenta6b58367410abc85fc079910f3f193eaa386f9f1
s3-aio: Panic if we try to close a fsp with outstanding aio requests

The core smbd must have taken care of this. If we don't do this properly,
we have a race of the close(2) against a pwrite(2). We might end up
writing to the wrong file.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul 19 03:40:17 CEST 2012 on sn-devel-104
source3/smbd/aio.c
source3/smbd/close.c
source3/smbd/proto.h