1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Eliminate the acquisition and release of the page queues lock around a call

to vm_page_sleep_if_busy().
This commit is contained in:
Alan Cox 2006-08-06 00:17:17 +00:00
parent e74814b66a
commit e7e56b2889
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161014

View File

@ -389,10 +389,8 @@ RetryFault:;
VM_OBJECT_LOCK(fs.object);
if (fs.m == vm_page_lookup(fs.object,
fs.pindex)) {
vm_page_lock_queues();
if (!vm_page_sleep_if_busy(fs.m, TRUE,
"vmpfw"))
vm_page_unlock_queues();
vm_page_sleep_if_busy(fs.m, TRUE,
"vmpfw");
}
vm_object_pip_wakeup(fs.object);
VM_OBJECT_UNLOCK(fs.object);