mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
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
07ebf8c8c3
commit
10b00dd4f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146126
@ -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