git: d1b6fef0751b - main - Stop creating socket aio kprocs during boot.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Oct 2021 21:03:31 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d1b6fef0751b70819e632d7d4722efbc8f94b80b
commit d1b6fef0751b70819e632d7d4722efbc8f94b80b
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-10-12 21:03:07 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-10-12 21:03:07 +0000
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
---
sys/kern/sys_socket.c | 2 --
1 file changed, 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);