Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Oct 2014 07:32:19 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r272495 - vendor-sys/illumos/dist/uts/common/fs/zfs
Message-ID:  <201410040732.s947WJ6H083774@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sat Oct  4 07:32:19 2014
New Revision: 272495
URL: https://svnweb.freebsd.org/changeset/base/272495

Log:
  5163 arc should reap range_seg_cache
  Reviewed by: Christopher Siden <christopher.siden@delphix.com>
  Reviewed by: Matthew Ahrens <mahrens@delphix.com>
  Reviewed by: Richard Elling <richard.elling@gmail.com>
  Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com>
  Approved by: Dan McDonald <danmcd@omniti.com>
  Author:	George Wilson <george.wilson@delphix.com>
  
  illumos/illumos@83803b51e1fa57fbf4e86ca5aa58eab6c5822dae

Modified:
  vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
  vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c	Sat Oct  4 07:26:42 2014	(r272494)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/arc.c	Sat Oct  4 07:32:19 2014	(r272495)
@@ -2303,6 +2303,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t
 	kmem_cache_t		*prev_data_cache = NULL;
 	extern kmem_cache_t	*zio_buf_cache[];
 	extern kmem_cache_t	*zio_data_buf_cache[];
+	extern kmem_cache_t	*range_seg_cache;
 
 #ifdef _KERNEL
 	if (arc_meta_used >= arc_meta_limit) {
@@ -2339,6 +2340,7 @@ arc_kmem_reap_now(arc_reclaim_strategy_t
 	}
 	kmem_cache_reap_now(buf_cache);
 	kmem_cache_reap_now(hdr_cache);
+	kmem_cache_reap_now(range_seg_cache);
 
 	/*
 	 * Ask the vmem areana to reclaim unused memory from its

Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c	Sat Oct  4 07:26:42 2014	(r272494)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/range_tree.c	Sat Oct  4 07:32:19 2014	(r272495)
@@ -33,7 +33,7 @@
 #include <sys/zio.h>
 #include <sys/range_tree.h>
 
-static kmem_cache_t *range_seg_cache;
+kmem_cache_t *range_seg_cache;
 
 void
 range_tree_init(void)



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