diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-10-12 21:03:07 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-10-12 21:03:07 +0000 |
commit | d1b6fef0751b70819e632d7d4722efbc8f94b80b (patch) | |
tree | 9b28094f37fff4518e061d34015501e0e0918ce1 | |
parent | 18dc12bfd2e23ad2ea97db54cb8ee499f6f014da (diff) | |
download | src-d1b6fef0751b70819e632d7d4722efbc8f94b80b.tar.gz src-d1b6fef0751b70819e632d7d4722efbc8f94b80b.zip |
Stop creating socket aio kprocs during boot.
Create the initial pool of kprocs on demand when the first socket AIO
request is submitted instead. The pool of kprocs used for other AIO
requests is similarly created on first use.
Reviewed by: asomers
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D32468
-rw-r--r-- | sys/kern/sys_socket.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index d4200e5618d2..910da911b189 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -583,8 +583,6 @@ soaio_init(void) mtx_init(&soaio_jobs_lock, "soaio jobs", NULL, MTX_DEF); soaio_kproc_unr = new_unrhdr(1, INT_MAX, NULL); TASK_INIT(&soaio_kproc_task, 0, soaio_kproc_create, NULL); - if (soaio_target_procs > 0) - taskqueue_enqueue(taskqueue_thread, &soaio_kproc_task); } SYSINIT(soaio, SI_SUB_VFS, SI_ORDER_ANY, soaio_init, NULL); |