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>
This commit is contained in:
parent
ed913cabfe
commit
c844abc920
@ -47,6 +47,7 @@
|
|||||||
#include <sys/conf.h>
|
#include <sys/conf.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
|
|
||||||
|
#include <posix4/posix4.h>
|
||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_extern.h>
|
#include <vm/vm_extern.h>
|
||||||
#include <vm/pmap.h>
|
#include <vm/pmap.h>
|
||||||
@ -350,6 +351,7 @@ aio_onceonly(void)
|
|||||||
aiod_lifetime = AIOD_LIFETIME_DEFAULT;
|
aiod_lifetime = AIOD_LIFETIME_DEFAULT;
|
||||||
jobrefid = 1;
|
jobrefid = 1;
|
||||||
async_io_version = _POSIX_VERSION;
|
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_exit(aio_proc_rundown);
|
||||||
rm_at_exec(aio_proc_rundown);
|
rm_at_exec(aio_proc_rundown);
|
||||||
kqueue_del_filteropts(EVFILT_AIO);
|
kqueue_del_filteropts(EVFILT_AIO);
|
||||||
|
p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, 0);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user