mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 12:48:09 +00:00
lio_listio() never validated 'nent' against {AIO_LISTIO_MAX}, so a
batch larger than the documented limit was silently accepted, and the
hard-coded _POSIX_AIO_LISTIO_MAX value of 2 was too small for real
workloads (LTP uses 10 entries per call).
Add the FS_AIO_LISTIO_MAX Kconfig option (default 10), use it for
_POSIX_AIO_LISTIO_MAX in include/limits.h, validate 'nent' in
lio_listio(), and report the limit through sysconf(_SC_AIO_LISTIO_MAX).
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| aio.h | ||
| aio_cancel.c | ||
| aio_fsync.c | ||
| aio_initialize.c | ||
| aio_queue.c | ||
| aio_read.c | ||
| aio_signal.c | ||
| aio_write.c | ||
| aioc_contain.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lio_listio.c | ||
| Make.defs | ||