o Assert that the page queues lock is held in vm_page_activate().

This commit is contained in:
Alan Cox 2002-08-11 00:21:40 +00:00
parent 99cb3c4c0f
commit 60582cbe6d

View File

@ -1052,7 +1052,7 @@ vm_page_activate(vm_page_t m)
{
int s;
GIANT_REQUIRED;
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
s = splvm();
if (m->queue != PQ_ACTIVE) {
if ((m->queue - m->pc) == PQ_CACHE)