From bca62663abdf9c957d3d60b694f795efb5ea5488 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 7 Dec 2003 04:16:49 +0000 Subject: [PATCH] - Giant is no longer required by vm_thread_new(). --- sys/kern/kern_kse.c | 2 -- sys/kern/kern_thread.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 3683de878f9..985fce2b93a 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -187,9 +187,7 @@ thread_init(void *mem, int size) struct thread *td; td = (struct thread *)mem; - mtx_lock(&Giant); vm_thread_new(td, 0); - mtx_unlock(&Giant); cpu_thread_setup(td); td->td_turnstile = turnstile_alloc(); td->td_sched = (struct td_sched *)&td[1]; diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 3683de878f9..985fce2b93a 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -187,9 +187,7 @@ thread_init(void *mem, int size) struct thread *td; td = (struct thread *)mem; - mtx_lock(&Giant); vm_thread_new(td, 0); - mtx_unlock(&Giant); cpu_thread_setup(td); td->td_turnstile = turnstile_alloc(); td->td_sched = (struct td_sched *)&td[1];