diff options
author | alc <alc@FreeBSD.org> | 2006-08-06 00:17:17 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-08-06 00:17:17 +0000 |
commit | bc6eabeb885bd57324f84ed9a3163f85a5bd39eb (patch) | |
tree | c404adbe14b3c74186f0222ee1335913806569c1 /sys/vm/vm_fault.c | |
parent | 84c8fb9bd2c24cb26941f41d9f9b3ad498c405eb (diff) | |
download | FreeBSD-src-bc6eabeb885bd57324f84ed9a3163f85a5bd39eb.zip FreeBSD-src-bc6eabeb885bd57324f84ed9a3163f85a5bd39eb.tar.gz |
Eliminate the acquisition and release of the page queues lock around a call
to vm_page_sleep_if_busy().
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index b54f51c..b122c36 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); |