Correct the logic for determining whether the per-CPU locks need
to be destroyed. This fixes a problem where destroying a UMA zone would fail to destroy all zone mutexes. Reviewed by: jeff
This commit is contained in:
parent
920a6f7e8f
commit
f97d6ce396
@ -1132,7 +1132,7 @@ zone_dtor(void *arg, int size, void *udata)
|
||||
printf("Zone %s was not empty. Lost %d pages of memory.\n",
|
||||
zone->uz_name, zone->uz_pages);
|
||||
|
||||
if ((zone->uz_flags & UMA_ZFLAG_INTERNAL) != 0)
|
||||
if ((zone->uz_flags & UMA_ZFLAG_INTERNAL) == 0)
|
||||
for (cpu = 0; cpu < maxcpu; cpu++)
|
||||
CPU_LOCK_FINI(zone, cpu);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user