Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created September 8, 2009 23:27
Show Gist options
  • Select an option

  • Save methodmissing/183327 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/183327 to your computer and use it in GitHub Desktop.
/*
* aio requests queue up on the aio_async_workq or lio_sync_workq (for
* lio_listio LIO_WAIT). Requests then move to the per process aio_activeq
* (proc.aio_activeq) when one of our worker threads start the IO.
* And finally, requests move to the per process aio_doneq (proc.aio_doneq)
* when the IO request completes. The request remains on aio_doneq until
* user process calls aio_return or the process exits, either way that is our
* trigger to release aio resources.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment