Do not restart scan of the inactive queue when non-inactive page is
found. Rather, we shall not find such pages on inactive queue at all. Requested and reviewed by: alc MFC after: 2 weeks
This commit is contained in:
parent
3b9676efb5
commit
d4961bcb3a
@ -921,7 +921,6 @@ vm_pageout_scan(int pass)
|
||||
maxlaunder = 10000;
|
||||
vm_page_lock_queues();
|
||||
queues_locked = TRUE;
|
||||
rescan0:
|
||||
addl_page_shortage = addl_page_shortage_init;
|
||||
maxscan = cnt.v_inactive_count;
|
||||
|
||||
@ -930,12 +929,9 @@ rescan0:
|
||||
m = next) {
|
||||
KASSERT(queues_locked, ("unlocked queues"));
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
KASSERT(m->queue == PQ_INACTIVE, ("Inactive queue %p", m));
|
||||
|
||||
cnt.v_pdpages++;
|
||||
|
||||
if (m->queue != PQ_INACTIVE)
|
||||
goto rescan0;
|
||||
|
||||
next = TAILQ_NEXT(m, pageq);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user