Rewrite to support lio_listio and aio_suspend.