The vm_page lock is not needed around the call to vm_page_insert().

Submitted by:	alc
MFC after:	1 week
This commit is contained in:
kib 2013-06-03 04:11:42 +00:00
parent 17993ced1b
commit e047d2d65c

View File

@ -1426,9 +1426,7 @@ i915_gem_pager_fault(vm_object_t vm_obj, vm_ooffset_t offset, int prot,
}
m->valid = VM_PAGE_BITS_ALL;
*mres = m;
vm_page_lock(m);
vm_page_insert(m, vm_obj, OFF_TO_IDX(offset));
vm_page_unlock(m);
vm_page_busy(m);
CTR4(KTR_DRM, "fault %p %jx %x phys %x", gem_obj, offset, prot,