git: b07b1f890e47 - stable/13 - Stop creating socket aio kprocs during boot.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 23 Nov 2021 23:12:42 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=b07b1f890e473591b66e2ccbb0d776dc5334e09a

commit b07b1f890e473591b66e2ccbb0d776dc5334e09a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-10-12 21:03:07 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-11-23 23:11:43 +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
    
    (cherry picked from commit d1b6fef0751b70819e632d7d4722efbc8f94b80b)
---
 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 e53b0367960b..8ac24a048093 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);