Fix a long-standing bug with async io that would only be triggered by SMB2.
commit62e0a744e23ced873241b8fd531276e8f0c870b7
authorJeremy Allison <jra@samba.org>
Sat, 5 Jun 2010 04:00:24 +0000 (4 21:00 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 5 Jun 2010 04:00:24 +0000 (4 21:00 -0700)
tree81a03c00a964058fd8fbdb4b0384e53c58912757
parent79ec886aa4e8398cd45d9821030a1b87a17950f8
Fix a long-standing bug with async io that would only be triggered by SMB2.

On normal or shutdown close, ensure we wait for any pending IO to
complete before returning. Implement a blocking aio_suspend inside
vfs_aio_fork.c. These changes pass make test when the aio_fork module
is used by default on the test shares.

Jeremy.
source3/modules/vfs_aio_fork.c
source3/smbd/close.c