In vm_page_remove(), assert that the vm object is locked, unless an Alpha.
(The Alpha still requires updates to its pmap.)
This commit is contained in:
parent
786a9b65a9
commit
50028aa7d2
@ -604,8 +604,9 @@ vm_page_remove(vm_page_t m)
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
if (m->object == NULL)
|
||||
return;
|
||||
if (!VM_OBJECT_LOCKED(m->object))
|
||||
GIANT_REQUIRED;
|
||||
#ifndef __alpha__
|
||||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
#endif
|
||||
if ((m->flags & PG_BUSY) == 0) {
|
||||
panic("vm_page_remove: page not busy");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user