diff options
| author | Alan Cox <alc@FreeBSD.org> | 2004-08-21 19:20:21 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2004-08-21 19:20:21 +0000 |
| commit | b99e61353fbd04f6f1537da2d187a5c02dce30ce (patch) | |
| tree | 3457a956972395da03a7a13951b167b89ec640af /sys/vm/vm_fault.c | |
| parent | 0b6a0b955ad6bf130823d5bd228628428948a7ab (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_fault.c')
| -rw-r--r-- | sys/vm/vm_fault.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 1fa921d00d57..1f6fd0b06e31 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -167,9 +167,9 @@ _unlock_things(struct faultstate *fs, int dealloc) } unlock_map(fs); if (fs->vp != NULL) { + mtx_lock(&Giant); vput(fs->vp); - if (debug_mpsafevm) - mtx_unlock(&Giant); + mtx_unlock(&Giant); fs->vp = NULL; } if (dealloc) @@ -295,8 +295,7 @@ RetryFault:; VM_OBJECT_LOCK(fs.first_object); vm_object_reference_locked(fs.first_object); fs.vp = vnode_pager_lock(fs.first_object); - if (fs.vp == NULL && debug_mpsafevm) - mtx_unlock(&Giant); + mtx_unlock(&Giant); vm_object_pip_add(fs.first_object, 1); fs.lookup_still_valid = TRUE; |
