Date: Tue, 8 Nov 2005 23:48:32 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_aio.c Message-ID: <200511082348.jA8NmWaM044704@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2005-11-08 23:48:32 UTC FreeBSD src repository Modified files: sys/kern vfs_aio.c Log: In aio_waitcomplete, do not return EAGAIN if no other threads have started aio, instead, initialize aio management structure if it hasn't been done, the reason to adjust this behavior is to make it a bit friendly for threaded program, consider two threads, one submits aio_write, and another just calls aio_waitcomplete to wait any I/O to be completed and recycle the aio requests, before submitter doing any I/O, the recycler wants to wait in kernel. This also fixes inconsistency with other aio syscalls. Revision Changes Path 1.204 +1 -1 src/sys/kern/vfs_aio.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511082348.jA8NmWaM044704>