diff options
author | alc <alc@FreeBSD.org> | 2006-10-23 05:27:31 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-10-23 05:27:31 +0000 |
commit | f395a2d02c323a280083ffe5ec6a052fc677a05a (patch) | |
tree | ef9c8bfa271c7c27431c20447a1187718f17fbb9 /sys/vm/vm_fault.c | |
parent | d95f4fb5ef094a3b930eead8b2609574837257a3 (diff) | |
download | FreeBSD-src-f395a2d02c323a280083ffe5ec6a052fc677a05a.zip FreeBSD-src-f395a2d02c323a280083ffe5ec6a052fc677a05a.tar.gz |
The page queues lock is no longer required by vm_page_wakeup().
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r-- | sys/vm/vm_fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 210c5bc..d62f3c7 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -133,8 +133,8 @@ struct faultstate { static inline void release_page(struct faultstate *fs) { - vm_page_lock_queues(); vm_page_wakeup(fs->m); + vm_page_lock_queues(); vm_page_deactivate(fs->m); vm_page_unlock_queues(); fs->m = NULL; @@ -914,8 +914,8 @@ readrest: } else { vm_page_activate(fs.m); } - vm_page_wakeup(fs.m); vm_page_unlock_queues(); + vm_page_wakeup(fs.m); /* * Unlock everything, and return @@ -1198,8 +1198,8 @@ vm_fault_copy_entry(dst_map, src_map, dst_entry, src_entry) * Mark it no longer busy, and put it on the active list. */ vm_page_activate(dst_m); - vm_page_wakeup(dst_m); vm_page_unlock_queues(); + vm_page_wakeup(dst_m); } VM_OBJECT_UNLOCK(dst_object); } |