Giant is not required for vm_thread_new_altkstack().
This commit is contained in:
parent
7b8fd8e313
commit
5fadbfeac2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user