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:
parent
c6e5e8f446
commit
a442ec4d3f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user