Eliminate unnecessary vm object locking from tmpfs_nocacheread().

This commit is contained in:
Alan Cox 2013-06-04 15:40:45 +00:00
parent af13de0f57
commit ba887a9b33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251383

View File

@ -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);
}