diff options
author | alc <alc@FreeBSD.org> | 2002-12-01 00:02:39 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-12-01 00:02:39 +0000 |
commit | e2702ec0794f99948c855086a90172b8e9e761c5 (patch) | |
tree | f75a642d57ad2897327c5f9fdb56c1d994143ec3 /sys | |
parent | 1a2fd04c363ba7ab5f15238d1385d76aaee4a1d1 (diff) | |
download | FreeBSD-src-e2702ec0794f99948c855086a90172b8e9e761c5.zip FreeBSD-src-e2702ec0794f99948c855086a90172b8e9e761c5.tar.gz |
Increase the scope of the page queue lock in vm_pageout_scan().
Approved by: re (blanket)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_pageout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 0066c83..4ac5259 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -770,6 +770,7 @@ rescan0: continue; } + vm_page_lock_queues(); /* * If the object is not being used, we ignore previous * references. @@ -789,7 +790,6 @@ rescan0: */ } else if (((m->flags & PG_REFERENCED) == 0) && (actcount = pmap_ts_referenced(m))) { - vm_page_lock_queues(); vm_page_activate(m); vm_page_unlock_queues(); m->act_count += (actcount + ACT_ADVANCE); @@ -805,7 +805,6 @@ rescan0: if ((m->flags & PG_REFERENCED) != 0) { vm_page_flag_clear(m, PG_REFERENCED); actcount = pmap_ts_referenced(m); - vm_page_lock_queues(); vm_page_activate(m); vm_page_unlock_queues(); m->act_count += (actcount + ACT_ADVANCE + 1); @@ -823,6 +822,7 @@ rescan0: } else { vm_page_dirty(m); } + vm_page_unlock_queues(); /* * Invalid pages can be easily freed |