From e7e56b2889a88c437171a624530b57c08edf60c8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 6 Aug 2006 00:17:17 +0000 Subject: [PATCH] Eliminate the acquisition and release of the page queues lock around a call to vm_page_sleep_if_busy(). --- sys/vm/vm_fault.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index b54f51c66628..b122c365146a 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -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);