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:
Ian Dowse 2002-06-10 03:25:23 +00:00
parent 920a6f7e8f
commit f97d6ce396

View File

@ -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);