From owner-svn-src-head@FreeBSD.ORG Mon Jun 3 04:11:44 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2A1C1C4F; Mon, 3 Jun 2013 04:11:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 1D20B16D6; Mon, 3 Jun 2013 04:11:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r534BgaV000821; Mon, 3 Jun 2013 04:11:42 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r534BggU000820; Mon, 3 Jun 2013 04:11:42 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201306030411.r534BggU000820@svn.freebsd.org> From: Konstantin Belousov Date: Mon, 3 Jun 2013 04:11:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251281 - head/sys/dev/drm2/i915 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 04:11:44 -0000 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,