Lock an update to a vm_object's ref_count.
This commit is contained in:
parent
cda4b241e2
commit
ab7b0ae578
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114378
@ -605,7 +605,9 @@ vop_stdcreatevobject(ap)
|
||||
* 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user