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:
parent
b417181250
commit
aed1e745d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251281
@ -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;
|
m->valid = VM_PAGE_BITS_ALL;
|
||||||
*mres = m;
|
*mres = m;
|
||||||
vm_page_lock(m);
|
|
||||||
vm_page_insert(m, vm_obj, OFF_TO_IDX(offset));
|
vm_page_insert(m, vm_obj, OFF_TO_IDX(offset));
|
||||||
vm_page_unlock(m);
|
|
||||||
vm_page_busy(m);
|
vm_page_busy(m);
|
||||||
|
|
||||||
CTR4(KTR_DRM, "fault %p %jx %x phys %x", gem_obj, offset, prot,
|
CTR4(KTR_DRM, "fault %p %jx %x phys %x", gem_obj, offset, prot,
|
||||||
|
Loading…
Reference in New Issue
Block a user