Lock some manipulations of the vm object's flags.

This commit is contained in:
Alan Cox 2003-04-13 23:43:34 +00:00
parent 0e7537d0d4
commit d1dc776d9d

View File

@ -533,7 +533,9 @@ vm_object_terminate(vm_object_t object)
/*
* Make sure no one uses us.
*/
VM_OBJECT_LOCK(object);
vm_object_set_flag(object, OBJ_DEAD);
VM_OBJECT_UNLOCK(object);
/*
* wait for the pageout daemon to be done with the object