Lock the vm object when performing vm_object_page_clean().
Approved by: re (rwatson)
This commit is contained in:
parent
6ab7ac813b
commit
57b29f0e87
@ -122,8 +122,11 @@ ffs_rawread_sync(struct vnode *vp, struct thread *td)
|
||||
if ((vp->v_iflag & VI_OBJDIRTY) != 0) {
|
||||
struct vm_object *obj;
|
||||
VI_UNLOCK(vp);
|
||||
if (VOP_GETVOBJECT(vp, &obj) == 0)
|
||||
if (VOP_GETVOBJECT(vp, &obj) == 0) {
|
||||
VM_OBJECT_LOCK(obj);
|
||||
vm_object_page_clean(obj, 0, 0, OBJPC_SYNC);
|
||||
VM_OBJECT_UNLOCK(obj);
|
||||
}
|
||||
VI_LOCK(vp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user