From owner-svn-src-head@FreeBSD.ORG Tue Jun 4 15:40:45 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 8CE6B41B; Tue, 4 Jun 2013 15:40:45 +0000 (UTC) (envelope-from alc@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 7F6AC1973; Tue, 4 Jun 2013 15:40:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r54FejTP050318; Tue, 4 Jun 2013 15:40:45 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r54FejFq050317; Tue, 4 Jun 2013 15:40:45 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201306041540.r54FejFq050317@svn.freebsd.org> From: Alan Cox Date: Tue, 4 Jun 2013 15:40:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251383 - head/sys/fs/tmpfs 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: Tue, 04 Jun 2013 15:40:45 -0000 Author: alc Date: Tue Jun 4 15:40:45 2013 New Revision: 251383 URL: http://svnweb.freebsd.org/changeset/base/251383 Log: Eliminate unnecessary vm object locking from tmpfs_nocacheread(). Modified: head/sys/fs/tmpfs/tmpfs_vnops.c Modified: head/sys/fs/tmpfs/tmpfs_vnops.c ============================================================================== --- head/sys/fs/tmpfs/tmpfs_vnops.c Tue Jun 4 15:35:37 2013 (r251382) +++ head/sys/fs/tmpfs/tmpfs_vnops.c Tue Jun 4 15:40:45 2013 (r251383) @@ -490,7 +490,6 @@ tmpfs_nocacheread(vm_object_t tobj, vm_p vm_page_unlock(m); VM_OBJECT_WUNLOCK(tobj); error = uiomove_fromphys(&m, offset, tlen, uio); - VM_OBJECT_WLOCK(tobj); vm_page_lock(m); vm_page_unhold(m); if (m->queue == PQ_NONE) { @@ -500,7 +499,6 @@ tmpfs_nocacheread(vm_object_t tobj, vm_p vm_page_requeue(m); } vm_page_unlock(m); - VM_OBJECT_WUNLOCK(tobj); return (error); }