The final test in unlock_and_deallocate() to determine if GIANT needs to be

unlocked wasn't updated to check for OBJ_NEEDGIANT. This caused a WITNESS
panic when debug_mpsafevm was set to 0.

Approved by:	jeffr
This commit is contained in:
grehan 2005-05-12 04:09:41 +00:00
parent c6e5e8f446
commit a442ec4d3f

View File

@ -174,7 +174,7 @@ unlock_and_deallocate(struct faultstate *fs)
fs->vp = NULL;
VFS_UNLOCK_GIANT(vfslocked);
}
if (!fs->map->system_map)
if (fs->first_object->flags & OBJ_NEEDGIANT)
VM_UNLOCK_GIANT();
}