]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
1. Remove aio entry from lists earlier in aio_free_entry,
authordavidxu <davidxu@FreeBSD.org>
Sun, 26 Feb 2006 12:56:23 +0000 (12:56 +0000)
committerdavidxu <davidxu@FreeBSD.org>
Sun, 26 Feb 2006 12:56:23 +0000 (12:56 +0000)
commit59079f19a55046ea67dcd7da6b9d355e3ac37a04
tree862fa5451058e2750c857e426409e1fb227bbab7
parenta9ab65374c5d30174564d824577d1192da74a8fb
1. Remove aio entry from lists earlier in aio_free_entry,
   so other threads can not see it if we unlock the proc
   lock (this can happen in knlist_delete).  Don't do wakeup,
   it is not necessary.

2. Decrease kaio_buffer_count in biohelper rather than
   doing it in aio_bio_done_notify.

3. In aio_bio_done_notify, don't send notification if KAIO_RUNDOWN
   was set, because the process is already in single thread mode.

4. Use assignment to initialize aiothreadflags.

5. AIOCBLIST_RUNDOWN is not useful, axe the code using it.

6. use LIO_NOP instead of zero.
sys/kern/vfs_aio.c