Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2013 15:40:45 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251383 - head/sys/fs/tmpfs
Message-ID:  <201306041540.r54FejFq050317@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



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