mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Assert that the containing vm object is locked in vm_page_flash().
This commit is contained in:
parent
2ee4b70bec
commit
63bb7041cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136952
@ -312,6 +312,8 @@ vm_page_busy(vm_page_t m)
|
||||
void
|
||||
vm_page_flash(vm_page_t m)
|
||||
{
|
||||
|
||||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
if (m->flags & PG_WANTED) {
|
||||
vm_page_flag_clear(m, PG_WANTED);
|
||||
wakeup(m);
|
||||
|
Loading…
Reference in New Issue
Block a user