diff options
author | kib <kib@FreeBSD.org> | 2013-06-03 04:11:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-06-03 04:11:42 +0000 |
commit | e047d2d65ce2c5a19fdadeae38f512508444f993 (patch) | |
tree | 4648bb95ee8b64db7de13cfcd9ecf788b049fa67 /sys/dev | |
parent | 17993ced1b8bde5d02a6fa8fe966058a330ba5b2 (diff) | |
download | FreeBSD-src-e047d2d65ce2c5a19fdadeae38f512508444f993.zip FreeBSD-src-e047d2d65ce2c5a19fdadeae38f512508444f993.tar.gz |
The vm_page lock is not needed around the call to vm_page_insert().
Submitted by: alc
MFC after: 1 week
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/drm2/i915/i915_gem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.c index f3f82e7..3b6cbc3 100644 --- a/sys/dev/drm2/i915/i915_gem.c +++ b/sys/dev/drm2/i915/i915_gem.c @@ -1426,9 +1426,7 @@ unlocked_vmobj: } 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, |