Bug 18350

Summary: aio_suspend doesn't work when nents == AIO_LISTIO_MAX
Product: Base System Reporter: mdiclaud <mdiclaud>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   

Description mdiclaud 2000-05-02 20:00:01 UTC
when calling aio_suspend( ..., AIO_LISTIO_MAX, ... ), it returns with EINVAL

also, man pages for aio_suspend don't match comments in the code:  man pages say it returns when *all* requests complete, code says when *any* complete.

Fix: 

modify /sys/kern/vfs_aio.c, at the beginning of the aio_suspend function, change:

  if (uap->nent >= AIO_LISTIO_MAX)
    return EINVAL;

change ">=" to ">"
Comment 1 Alan Cox freebsd_committer freebsd_triage 2002-01-02 07:34:17 UTC
State Changed
From-To: open->closed

Fixed in 4.5-RELEASE.