Move the counting of outstanding_aio_calls into the lifecycle of the aio_extra struct.
authorJeremy Allison <jra@samba.org>
Thu, 12 Apr 2012 20:48:29 +0000 (13:48 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 12 Apr 2012 22:06:58 +0000 (15:06 -0700)
commit95839102ad9c1b052924a99ee938991a305d1add
tree43058333b78a078c8a9af1c253a9279a1b8c1996
parent80a4e38d6465d8ae47ca113027421af852d34316
Move the counting of outstanding_aio_calls into the lifecycle of the aio_extra struct.
This way we can't end up with a mismatch between outstanding events and the counter.

We may still have problems with canceling and not correctly freeing the aio
struct, but at least the counter won't get out of sync anymore.
source3/smbd/aio.c