Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2013 04:11:42 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251281 - head/sys/dev/drm2/i915
Message-ID:  <201306030411.r534BggU000820@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jun  3 04:11:42 2013
New Revision: 251281
URL: http://svnweb.freebsd.org/changeset/base/251281

Log:
  The vm_page lock is not needed around the call to vm_page_insert().
  
  Submitted by:	alc
  MFC after:	1 week

Modified:
  head/sys/dev/drm2/i915/i915_gem.c

Modified: head/sys/dev/drm2/i915/i915_gem.c
==============================================================================
--- head/sys/dev/drm2/i915/i915_gem.c	Mon Jun  3 01:22:54 2013	(r251280)
+++ head/sys/dev/drm2/i915/i915_gem.c	Mon Jun  3 04:11:42 2013	(r251281)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306030411.r534BggU000820>