Date: Tue, 28 Apr 2009 13:51:14 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 161250 for review Message-ID: <200904281351.n3SDpEqE092789@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=161250 Change 161250 by zec@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(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904281351.n3SDpEqE092789>