summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2002-06-10 03:25:23 +0000
committeriedowse <iedowse@FreeBSD.org>2002-06-10 03:25:23 +0000
commit02040b5ae2c4ddd7ec0f7c6c0edc88634278113c (patch)
treefdc225c099e86bcc2bd0c1cc4acafa94cbc7f8d5 /sys
parent55adce9473399d8f43f86ffbfb5b6032f695d831 (diff)
downloadFreeBSD-src-02040b5ae2c4ddd7ec0f7c6c0edc88634278113c.zip
FreeBSD-src-02040b5ae2c4ddd7ec0f7c6c0edc88634278113c.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/uma_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 9afe453..0cab592 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -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);
OpenPOWER on IntegriCloud