mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
MFC r207580:
Handle busy status of the page in a way expected for pager_getpage(). Flush requested page, unbusy other pages, do not clear m->busy.
This commit is contained in:
parent
50669a65c7
commit
70020ca01e
1 changed files with 4 additions and 4 deletions
|
|
@ -152,10 +152,10 @@ phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage)
|
|||
KASSERT(m[i]->dirty == 0,
|
||||
("phys_pager_getpages: dirty page %p", m[i]));
|
||||
/* The requested page must remain busy, the others not. */
|
||||
if (reqpage != i) {
|
||||
m[i]->oflags &= ~VPO_BUSY;
|
||||
m[i]->busy = 0;
|
||||
}
|
||||
if (i == reqpage)
|
||||
vm_page_flash(m[i]);
|
||||
else
|
||||
vm_page_wakeup(m[i]);
|
||||
}
|
||||
return (VM_PAGER_OK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue