diff options
author | alc <alc@FreeBSD.org> | 2006-07-21 23:22:49 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-07-21 23:22:49 +0000 |
commit | b5b274360a3812cdb97291613b347d2d3708a69f (patch) | |
tree | eae61cb5300fcf10fa3362df8cea2c0797332c3b /sys/vm/vm_fault.c | |
parent | 9d70629cbaaea9865d9f6ec1bac456ba1a85d373 (diff) | |
download | FreeBSD-src-b5b274360a3812cdb97291613b347d2d3708a69f.zip FreeBSD-src-b5b274360a3812cdb97291613b347d2d3708a69f.tar.gz |
Retire debug.mpsafevm. None of the architectures supported in CVS require
it any longer.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 9387575..b54f51c 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -152,7 +152,6 @@ unlock_map(struct faultstate *fs) static void unlock_and_deallocate(struct faultstate *fs) { - boolean_t firstobjneedgiant; vm_object_pip_wakeup(fs->object); VM_OBJECT_UNLOCK(fs->object); @@ -165,7 +164,6 @@ unlock_and_deallocate(struct faultstate *fs) VM_OBJECT_UNLOCK(fs->first_object); fs->first_m = NULL; } - firstobjneedgiant = (fs->first_object->flags & OBJ_NEEDGIANT) != 0; vm_object_deallocate(fs->first_object); unlock_map(fs); if (fs->vp != NULL) { @@ -176,8 +174,6 @@ unlock_and_deallocate(struct faultstate *fs) fs->vp = NULL; VFS_UNLOCK_GIANT(vfslocked); } - if (firstobjneedgiant) - VM_UNLOCK_GIANT(); } /* @@ -302,7 +298,7 @@ RetryFault:; KASSERT((fs.first_object->flags & OBJ_NEEDGIANT) == 0 || !fs.map->system_map, ("vm_fault: Object requiring giant mapped by system map")); - if (fs.first_object->flags & OBJ_NEEDGIANT && debug_mpsafevm) + if (fs.first_object->flags & OBJ_NEEDGIANT) mtx_unlock(&Giant); vm_object_pip_add(fs.first_object, 1); @@ -401,8 +397,6 @@ RetryFault:; vm_object_pip_wakeup(fs.object); VM_OBJECT_UNLOCK(fs.object); atomic_add_int(&cnt.v_intrans, 1); - if (fs.first_object->flags & OBJ_NEEDGIANT) - VM_UNLOCK_GIANT(); vm_object_deallocate(fs.first_object); goto RetryFault; } |