diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-06-10 03:25:23 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-06-10 03:25:23 +0000 |
commit | 02040b5ae2c4ddd7ec0f7c6c0edc88634278113c (patch) | |
tree | fdc225c099e86bcc2bd0c1cc4acafa94cbc7f8d5 /sys/vm/uma_core.c | |
parent | 55adce9473399d8f43f86ffbfb5b6032f695d831 (diff) | |
download | FreeBSD-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/vm/uma_core.c')
-rw-r--r-- | sys/vm/uma_core.c | 2 |
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); |