]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Destroy TCP UMA zones (empty or not) upon network stack teardown
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 7 Mar 2010 15:58:44 +0000 (15:58 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 7 Mar 2010 15:58:44 +0000 (15:58 +0000)
commit376aadf8966bde66bde46a8bf02cf3dbf857a805
tree1f07ab65687e6f16be7044a00fcfbea48b2895c0
parente253cdd07c2b4384c05431c4767f0e2c3a9a6a79
Destroy TCP UMA zones (empty or not) upon network stack teardown
to not leak them, otherwise making UMA/vmstat unhappy with every stoped vnet.
We will still leak pages (especially for zones marked NOFREE).

Reshuffle cleanup order in tcp_destroy() to get rid of what we can
easily free first.

Sponsored by: ISPsystem
Reviewed by: rwatson
MFC after: 5 days
sys/netinet/tcp_reass.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timewait.c
sys/netinet/tcp_var.h