cvs commit: src/sys/kern vfs_aio.c

David Xu davidxu at FreeBSD.org
Tue Nov 8 23:48:32 GMT 2005


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


More information about the cvs-src mailing list