| Summary: | aio_suspend doesn't work when nents == AIO_LISTIO_MAX | ||
|---|---|---|---|
| Product: | Base System | Reporter: | mdiclaud <mdiclaud> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.4-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Fixed in 4.5-RELEASE. |
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 ">"