PERFORCE change 161250 for review
Marko Zec
zec at FreeBSD.org
Tue Apr 28 13:51:16 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161250
Change 161250 by zec at zec_amdx2 on 2009/04/28 13:50:49
tcp_hc_purge() is timer triggered, and as such has no curvnet
set on entry, hence CURVNET_SET() / CURVNET_RESTORE() are
needed here.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/netinet/tcp_hostcache.c#20 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_hostcache.c#20 (text+ko) ====
@@ -634,6 +634,7 @@
static void
tcp_hc_purge(void *arg)
{
+ CURVNET_SET((struct vnet *) arg);
INIT_VNET_INET(curvnet);
struct hc_metrics *hc_entry, *hc_next;
int all = 0; /* XXX was: (intptr_t)arg - makes no sense? */
@@ -662,4 +663,5 @@
callout_reset(&V_tcp_hc_callout, V_tcp_hostcache.prune * hz,
tcp_hc_purge, arg);
+ CURVNET_RESTORE();
}
More information about the p4-projects
mailing list