diff options
author | alc <alc@FreeBSD.org> | 2013-06-04 15:40:45 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2013-06-04 15:40:45 +0000 |
commit | e4b61d89d10ec2a839c2ec2dc671f75c06aeaec4 (patch) | |
tree | e389d828d1219765a0c3fcb51e5990f38b8d02b2 /sys/fs | |
parent | 6bf2be62a06ea41692a22fe02e16b4c851f9f5d0 (diff) | |
download | FreeBSD-src-e4b61d89d10ec2a839c2ec2dc671f75c06aeaec4.zip FreeBSD-src-e4b61d89d10ec2a839c2ec2dc671f75c06aeaec4.tar.gz |
Eliminate unnecessary vm object locking from tmpfs_nocacheread().
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index cb27854..1b66620 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -490,7 +490,6 @@ tmpfs_nocacheread(vm_object_t tobj, vm_pindex_t idx, 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_pindex_t idx, vm_page_requeue(m); } vm_page_unlock(m); - VM_OBJECT_WUNLOCK(tobj); return (error); } |