trap_pfault() shouldn't be acquiring Giant. Found to blow up

with MUTEX_PROFILING.

Submitted by:  Suleiman Souhlal <refugee@segfaulted.com>
This commit is contained in:
grehan 2004-05-19 06:05:42 +00:00
parent cb8ed671c6
commit 2376cee533
2 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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);