From 86d52125a2236ec5e7b4b27e8683c264e3f2ad01 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Sat, 16 Nov 2002 06:38:07 +0000 Subject: [PATCH] Export the values for _SC_AIO_MAX and _SC_AIO_PRIO_DELTA_MAX via the p1003b sysctl interface. --- sys/kern/vfs_aio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 706e36e21be6..5254a1614390 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -352,6 +352,8 @@ aio_onceonly(void) jobrefid = 1; async_io_version = _POSIX_VERSION; p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX); + p31b_setcfg(CTL_P1003_1B_AIO_MAX, MAX_AIO_QUEUE); + p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0); } /* @@ -375,6 +377,8 @@ aio_unload(void) rm_at_exec(aio_proc_rundown); kqueue_del_filteropts(EVFILT_AIO); p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, 0); + p31b_setcfg(CTL_P1003_1B_AIO_MAX, 0); + p31b_setcfg(CTL_P1003_1B_AIO_PRIO_DELTA_MAX, 0); return (0); }