]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reset the cachefree statistics after draining the cache. This fixes a bug
authorJeff Roberson <jeff@FreeBSD.org>
Sun, 24 Mar 2002 10:56:11 +0000 (10:56 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Sun, 24 Mar 2002 10:56:11 +0000 (10:56 +0000)
commitf4af24d55dc7bc9a7493fff34f999a410282c78e
tree9e3d1f9ce54e63587400ab68abd79f9ae5d599d8
parent9156494211ebb5f7e4839791d91fc008554533a7
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
sys/vm/uma_core.c