Lock an update to a vm_object's ref_count.

This commit is contained in:
Alan Cox 2003-05-01 03:51:05 +00:00
parent cda4b241e2
commit ab7b0ae578

View File

@ -605,7 +605,9 @@ retry:
* Dereference the reference we just created. This assumes
* that the object is associated with the vp.
*/
VM_OBJECT_LOCK(object);
object->ref_count--;
VM_OBJECT_UNLOCK(object);
vrele(vp);
} else {
if (object->flags & OBJ_DEAD) {