Other parts of the tree do not protect calls to kmem_free() with Giant,

so remove it from here.  The most notable examples include vm_mmap().
This removes one more Giant event from exit(2).
This commit is contained in:
peter 2004-03-08 00:27:33 +00:00
parent abf40a2dfe
commit 8da7b98c54

View File

@ -320,10 +320,8 @@ cpu_thread_clean(struct thread *td)
* XXX do we need to move the TSS off the allocated pages
* before freeing them? (not done here)
*/
mtx_lock(&Giant);
kmem_free(kernel_map, (vm_offset_t)pcb->pcb_ext,
ctob(IOPAGES + 1));
mtx_unlock(&Giant);
pcb->pcb_ext = 0;
}
}