mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a deletion during traversal tailq bug.
This commit is contained in:
parent
e12c2e18a5
commit
eecc66a7d2
1 changed files with 2 additions and 1 deletions
|
|
@ -1200,7 +1200,8 @@ pmap_release(pmap_t pm)
|
|||
KASSERT(pmap_resident_count(pm) == 0,
|
||||
("pmap_release: resident pages %ld != 0",
|
||||
pmap_resident_count(pm)));
|
||||
TAILQ_FOREACH(m, &obj->memq, listq) {
|
||||
while (!TAILQ_EMPTY(&obj->memq)) {
|
||||
m = TAILQ_FIRST(&obj->memq);
|
||||
if (vm_page_sleep_busy(m, FALSE, "pmaprl"))
|
||||
continue;
|
||||
vm_page_busy(m);
|
||||
|
|
|
|||
Loading…
Reference in a new issue