mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a bug in r356776 where the page allocator was not properly restored to
the percpu page allocator after it had been temporarily overridden by startup_alloc. Reported by: pho, bdragon
This commit is contained in:
parent
680ea3bf7b
commit
f96d4157a7
1 changed files with 3 additions and 1 deletions
|
|
@ -2101,7 +2101,9 @@ zone_kva_available(uma_zone_t zone, void *unused)
|
|||
if ((zone->uz_flags & UMA_ZFLAG_CACHE) != 0)
|
||||
return;
|
||||
KEG_GET(zone, keg);
|
||||
if (keg->uk_allocf == startup_alloc)
|
||||
if (keg->uk_flags & UMA_ZONE_PCPU)
|
||||
keg->uk_allocf = pcpu_page_alloc;
|
||||
else if (keg->uk_allocf == startup_alloc)
|
||||
keg->uk_allocf = page_alloc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue