Date: Sat, 6 Mar 2010 21:24:32 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204807 - head/sys/netinet Message-ID: <201003062124.o26LOWnG041358@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003062124.o26LOWnG041358>