diff options
author | grehan <grehan@FreeBSD.org> | 2004-05-19 06:05:42 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-05-19 06:05:42 +0000 |
commit | 2376cee53350d1d58196fe090ecad9739a6ad2d7 (patch) | |
tree | 42f0a92c6dfc79c6f4bf2cfc5978aef777e1ecf1 /sys/powerpc | |
parent | cb8ed671c69b48a885580f0d9245ef3c92703868 (diff) | |
download | FreeBSD-src-2376cee53350d1d58196fe090ecad9739a6ad2d7.zip FreeBSD-src-2376cee53350d1d58196fe090ecad9739a6ad2d7.tar.gz |
trap_pfault() shouldn't be acquiring Giant. Found to blow up
with MUTEX_PROFILING.
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/trap.c | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/trap.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index ad87764..96a4f94 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -512,7 +512,6 @@ trap_pfault(struct trapframe *frame, int user) } va = trunc_page(eva); - mtx_lock(&Giant); if (map != kernel_map) { /* * Keep swapout from messing with us during this @@ -537,7 +536,6 @@ trap_pfault(struct trapframe *frame, int user) */ rv = vm_fault(map, va, ftype, VM_FAULT_NORMAL); } - mtx_unlock(&Giant); if (rv == KERN_SUCCESS) return (0); diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index ad87764..96a4f94 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -512,7 +512,6 @@ trap_pfault(struct trapframe *frame, int user) } va = trunc_page(eva); - mtx_lock(&Giant); if (map != kernel_map) { /* * Keep swapout from messing with us during this @@ -537,7 +536,6 @@ trap_pfault(struct trapframe *frame, int user) */ rv = vm_fault(map, va, ftype, VM_FAULT_NORMAL); } - mtx_unlock(&Giant); if (rv == KERN_SUCCESS) return (0); |