diff options
author | alc <alc@FreeBSD.org> | 2010-05-05 18:16:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-05-05 18:16:06 +0000 |
commit | 5c7ca3ee73eb98150c91a44001daf8ac7adb0907 (patch) | |
tree | aed312c92f14a164a2e36963e81da2e8973206a2 /sys/vm/vm_fault.c | |
parent | 402e3baadee30786a2a2fa508b9b7bec572da072 (diff) | |
download | FreeBSD-src-5c7ca3ee73eb98150c91a44001daf8ac7adb0907.zip FreeBSD-src-5c7ca3ee73eb98150c91a44001daf8ac7adb0907.tar.gz |
Acquire the page lock around all remaining calls to vm_page_free() on
managed pages that didn't already have that lock held. (Freeing an
unmanaged page, such as the various pmaps use, doesn't require the page
lock.)
This allows a change in vm_page_remove()'s locking requirements. It now
expects the page lock to be held instead of the page queues lock.
Consequently, the page queues lock is no longer required at all by callers
to vm_page_rename().
Discussed with: kib
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 373433f..2978f7f 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -778,9 +778,7 @@ vnode_locked: * automatically made dirty. */ vm_page_lock(fs.m); - vm_page_lock_queues(); vm_page_rename(fs.m, fs.first_object, fs.first_pindex); - vm_page_unlock_queues(); vm_page_unlock(fs.m); vm_page_busy(fs.m); fs.first_m = fs.m; |