svn commit: r204807 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Sat Mar 6 21:24:32 UTC 2010


Author: bz
Date: Sat Mar  6 21:24:32 2010
New Revision: 204807
URL: http://svn.freebsd.org/changeset/base/204807

Log:
  Destroy UDP UMA zones (empty or not) upon network stack teardown
  to not leak them making the VM subsystem unhappy with every stoped vnet(*).
  We will still leak pages (especially as zones are marked NOFREE).
  
  (*) This will also keep vmstat -z more usable.
  
  Sponsored by:	ISPsystem
  MFC after:	5 days

Modified:
  head/sys/netinet/udp_usrreq.c

Modified: head/sys/netinet/udp_usrreq.c
==============================================================================
--- head/sys/netinet/udp_usrreq.c	Sat Mar  6 21:24:11 2010	(r204806)
+++ head/sys/netinet/udp_usrreq.c	Sat Mar  6 21:24:32 2010	(r204807)
@@ -245,6 +245,9 @@ udp_destroy(void)
 	    V_udbinfo.ipi_hashmask);
 	hashdestroy(V_udbinfo.ipi_porthashbase, M_PCB,
 	    V_udbinfo.ipi_porthashmask);
+
+	uma_zdestroy(V_udpcb_zone);
+	uma_zdestroy(V_udbinfo.ipi_zone);
 	INP_INFO_LOCK_DESTROY(&V_udbinfo);
 }
 #endif


More information about the svn-src-head mailing list