diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-14 21:18:07 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-14 21:18:07 +0000 |
commit | 841c5ac424184f3ed263a8eefaf9b19018d912de (patch) | |
tree | 9ac20b7c57d5c76f86dcb4e7a9142c6bf0b32ad8 /sys/vm/vm_fault.c | |
parent | 7518c752694887a6a2e9d07bdacbfb3901dc7da1 (diff) | |
download | FreeBSD-src-841c5ac424184f3ed263a8eefaf9b19018d912de.zip FreeBSD-src-841c5ac424184f3ed263a8eefaf9b19018d912de.tar.gz |
Convert a remaining !fs.map->system_map to
fs.first_object->flags & OBJ_NEEDGIANT test that was missed in an earlier
revision. This fixes mutex assertion failures in the debug.mpsafevm=0
case.
Reported by: ps
MFC after: 3 days
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 2c75f54..57fbca0 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -399,7 +399,7 @@ RetryFault:; vm_object_pip_wakeup(fs.object); VM_OBJECT_UNLOCK(fs.object); atomic_add_int(&cnt.v_intrans, 1); - if (!fs.map->system_map) + if (fs.first_object->flags & OBJ_NEEDGIANT) VM_UNLOCK_GIANT(); vm_object_deallocate(fs.first_object); goto RetryFault; |