Refine the assertion in vm_object_clear_flag() to allow operation on the
kmem_object without Giant. In that case, assert that the kmem_object's mutex is held.
This commit is contained in:
parent
997c254192
commit
bb9d453ab0
@ -261,7 +261,8 @@ vm_object_set_flag(vm_object_t object, u_short bits)
|
||||
void
|
||||
vm_object_clear_flag(vm_object_t object, u_short bits)
|
||||
{
|
||||
GIANT_REQUIRED;
|
||||
|
||||
mtx_assert(object == kmem_object ? &object->mtx : &Giant, MA_OWNED);
|
||||
object->flags &= ~bits;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user