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
This commit is contained in:
John Baldwin 2005-07-14 21:18:07 +00:00
parent fd4e475233
commit b9d3b80521
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148014

View File

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