o Assert that the page queues lock is held in vm_page_try_to_free().
This commit is contained in:
parent
a01b1feba6
commit
4de6bb3a4d
@ -1387,6 +1387,8 @@ vm_page_try_to_cache(vm_page_t m)
|
||||
int
|
||||
vm_page_try_to_free(vm_page_t m)
|
||||
{
|
||||
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
if (m->dirty || m->hold_count || m->busy || m->wire_count ||
|
||||
(m->flags & (PG_BUSY|PG_UNMANAGED))) {
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user