Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2020 23:15:21 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357892 - head/sys/vm
Message-ID:  <202002132315.01DNFLYc096759@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Feb 13 23:15:21 2020
New Revision: 357892
URL: https://svnweb.freebsd.org/changeset/base/357892

Log:
  Update the zone-global count of cached items in bucket_cache_reclaim().
  
  This was missed in r351673.  The count is used to enfore cache limits,
  which are rarely used.
  
  Discussed with:	jeff
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Thu Feb 13 23:04:11 2020	(r357891)
+++ head/sys/vm/uma_core.c	Thu Feb 13 23:15:21 2020	(r357892)
@@ -1204,6 +1204,7 @@ bucket_cache_reclaim(uma_zone_t zone, bool drain)
 			tofree = bucket->ub_cnt;
 			STAILQ_REMOVE_HEAD(&zdom->uzd_buckets, ub_link);
 			zdom->uzd_nitems -= tofree;
+			zone->uz_bkt_count -= tofree;
 
 			/*
 			 * Shift the bounds of the current WSS interval to avoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002132315.01DNFLYc096759>