From owner-cvs-all Sun Mar 24 2:56:14 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EDBA737B400; Sun, 24 Mar 2002 02:56:11 -0800 (PST) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2OAuBM88985; Sun, 24 Mar 2002 02:56:11 -0800 (PST) (envelope-from jeff) Message-Id: <200203241056.g2OAuBM88985@freefall.freebsd.org> From: Jeff Roberson Date: Sun, 24 Mar 2002 02:56:11 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm uma_core.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/03/24 02:56:11 PST Modified files: sys/vm uma_core.c Log: Reset the cachefree statistics after draining the cache. This fixes a bug where a sysctl within 20 seconds of a cache_drain could yield negative "USED" counts. Also, grab the uma_mtx while in the sysctl handler. This hadn't caused problems yet because Giant is held all the time. Reported by: kkenn Revision Changes Path 1.3 +4 -0 src/sys/vm/uma_core.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message