summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-11-16 04:22:55 +0000
committeralfred <alfred@FreeBSD.org>2002-11-16 04:22:55 +0000
commit312b33b9d085b1ace8ba04871901cb08828aef2a (patch)
tree20176d57496d5f37e7c312fa6d23ed0668712e6c /sys/kern/vfs_aio.c
parent846c25bc5c4d6b3675018c563f73579526ac83a9 (diff)
downloadFreeBSD-src-312b33b9d085b1ace8ba04871901cb08828aef2a.zip
FreeBSD-src-312b33b9d085b1ace8ba04871901cb08828aef2a.tar.gz
Call 'p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX)'
when AIO is initialized so that sysconf() gives correct results. Reported by: Craig Rodrigues <rodrigc@attbi.com>
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index a080774..706e36e 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -47,6 +47,7 @@
#include <sys/conf.h>
#include <sys/event.h>
+#include <posix4/posix4.h>
#include <vm/vm.h>
#include <vm/vm_extern.h>
#include <vm/pmap.h>
@@ -350,6 +351,7 @@ aio_onceonly(void)
aiod_lifetime = AIOD_LIFETIME_DEFAULT;
jobrefid = 1;
async_io_version = _POSIX_VERSION;
+ p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, AIO_LISTIO_MAX);
}
/*
@@ -372,6 +374,7 @@ aio_unload(void)
rm_at_exit(aio_proc_rundown);
rm_at_exec(aio_proc_rundown);
kqueue_del_filteropts(EVFILT_AIO);
+ p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, 0);
return (0);
}
OpenPOWER on IntegriCloud