nuttx/fs/aio
Xiang Xiao d5d134bc79 fs/aio: raise the default AIO_LISTIO_MAX so LTP keeps passing
The new CONFIG_FS_AIO_LISTIO_MAX option defaults to 10 and lio_listio()
now rejects nent > {AIO_LISTIO_MAX} with EINVAL.  The LTP release pinned
by apps/testing/ltp (20230516) submits 256 requests in a single batch from
conformance/interfaces/lio_listio/2-1.c, so ltp_interfaces_lio_listio_2_1
now fails on every configuration that enables CONFIG_TESTING_LTP
(sim:citest, rv-virt:citest, sim:posix_test):

  lio_listio/2-1.c Error at lio_listio() 22: Invalid argument

The EINVAL check itself is required by POSIX, so keep it and raise the
default instead; the limit no longer costs memory because the requests are
linked through the aiocb's own lio_link.

While here, keep _POSIX_AIO_LISTIO_MAX at its POSIX-mandated value of 2
and let AIO_LISTIO_MAX carry the configurable implementation limit.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-09-14 17:12:49 -03:00
..
aio.h fs/aio: add internal aio_read/aio_write to avoid lio_link overwrite 2026-09-14 17:12:49 -03:00
aio_cancel.c fs/aio: fix aioc use-after-free and aio_cancel() issues 2026-09-14 17:12:49 -03:00
aio_fsync.c fs/aio: use list_clear_node() to mark non-batch requests 2026-09-14 17:12:49 -03:00
aio_initialize.c
aio_queue.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
aio_read.c fs/aio: use list_clear_node() to mark non-batch requests 2026-09-14 17:12:49 -03:00
aio_signal.c fs/aio: rework lio_listio() with a lock-protected request list 2026-09-14 17:12:49 -03:00
aio_write.c fs/aio: use list_clear_node() to mark non-batch requests 2026-09-14 17:12:49 -03:00
aioc_contain.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
CMakeLists.txt fs/aio: move lio_listio() to fs/aio 2026-09-14 17:12:49 -03:00
Kconfig fs/aio: raise the default AIO_LISTIO_MAX so LTP keeps passing 2026-09-14 17:12:49 -03:00
lio_listio.c fs/aio: use list_clear_node() to mark non-batch requests 2026-09-14 17:12:49 -03:00
Make.defs fs/aio: move lio_listio() to fs/aio 2026-09-14 17:12:49 -03:00