Giant is not required for vm_thread_new_altkstack().

This commit is contained in:
Alan Cox 2004-03-07 00:06:32 +00:00
parent 7b8fd8e313
commit 5fadbfeac2

View File

@ -471,11 +471,8 @@ fork1(td, flags, pages, procp)
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);