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:
alc 2003-01-03 19:19:08 +00:00
parent 997c254192
commit bb9d453ab0

View File

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