summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-03-08 00:27:33 +0000
committerpeter <peter@FreeBSD.org>2004-03-08 00:27:33 +0000
commit8da7b98c54b09d30fbd6d781f752611de18efae1 (patch)
tree806f970004a6a8c2bfa27ae21aad5354262e045f /sys
parentabf40a2dfe31c99480080b1ceb6c8ead593b6f2c (diff)
downloadFreeBSD-src-8da7b98c54b09d30fbd6d781f752611de18efae1.zip
FreeBSD-src-8da7b98c54b09d30fbd6d781f752611de18efae1.tar.gz
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).
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/vm_machdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index b09128d..e9e236f 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -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;
}
}
OpenPOWER on IntegriCloud