Assert that the page queues lock is held in pmap_changebit()

and pmap_ts_referenced().

Approved by:	re (blanket)
This commit is contained in:
Alan Cox 2002-12-01 00:08:14 +00:00
parent 78f7187d01
commit e6c90801b3
2 changed files with 4 additions and 4 deletions

View File

@ -3035,7 +3035,7 @@ pmap_changebit(vm_page_t m, int bit, boolean_t setem)
return;
s = splvm();
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
/*
* Loop over all current mappings setting/clearing as appropos If
* setting RO do we need to clear the VAC?
@ -3129,7 +3129,7 @@ pmap_ts_referenced(vm_page_t m)
return (rtval);
s = splvm();
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if ((pv = TAILQ_FIRST(&m->md.pv_list)) != NULL) {
pvf = pv;

View File

@ -3035,7 +3035,7 @@ pmap_changebit(vm_page_t m, int bit, boolean_t setem)
return;
s = splvm();
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
/*
* Loop over all current mappings setting/clearing as appropos If
* setting RO do we need to clear the VAC?
@ -3129,7 +3129,7 @@ pmap_ts_referenced(vm_page_t m)
return (rtval);
s = splvm();
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if ((pv = TAILQ_FIRST(&m->md.pv_list)) != NULL) {
pvf = pv;