summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-03-07 00:06:32 +0000
committeralc <alc@FreeBSD.org>2004-03-07 00:06:32 +0000
commit94f567f9bb61875636c0f0959b8e99a7183a36a6 (patch)
tree8c626ed99545b845f6a5c7e57f3fb1ed0208a4d4 /sys
parentb8d5a64b355dbe2ca7c354b6c13edf3dc100aa0b (diff)
downloadFreeBSD-src-94f567f9bb61875636c0f0959b8e99a7183a36a6.zip
FreeBSD-src-94f567f9bb61875636c0f0959b8e99a7183a36a6.tar.gz
Giant is not required for vm_thread_new_altkstack().
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_fork.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index f516b3b..1c39c42 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -471,11 +471,8 @@ again:
ke2 = FIRST_KSE_IN_KSEGRP(kg2);
/* Allocate and switch to an alternate kstack if specified. */
- if (pages != 0) {
- mtx_lock(&Giant);
+ if (pages != 0)
vm_thread_new_altkstack(td2, pages);
- mtx_unlock(&Giant);
- }
mtx_lock(&Giant); /* XXX: for VREF() */
PROC_LOCK(p2);
OpenPOWER on IntegriCloud