MFC r275513:
When the last reference on the vnode' vm object is dropped, read the vp->v_vflag without taking vnode lock and without bypass.
This commit is contained in:
parent
722ac120b4
commit
8b3b3c8447
@ -468,7 +468,12 @@ vm_object_vndeallocate(vm_object_t object)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (object->ref_count > 1) {
|
||||
/*
|
||||
* The test for text of vp vnode does not need a bypass to
|
||||
* reach right VV_TEXT there, since it is obtained from
|
||||
* object->handle.
|
||||
*/
|
||||
if (object->ref_count > 1 || (vp->v_vflag & VV_TEXT) == 0) {
|
||||
object->ref_count--;
|
||||
VM_OBJECT_WUNLOCK(object);
|
||||
/* vrele may need the vnode lock. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user