Date: Wed, 15 Oct 2008 15:21:10 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 151417 for review Message-ID: <200810151521.m9FFLAlc037330@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=151417 Change 151417 by zec@zec_tpx32 on 2008/10/15 15:20:16 Lock the vnet list while iterating through it. Affected files ... .. //depot/projects/vimage/src/sys/netipsec/key.c#26 edit Differences ... ==== //depot/projects/vimage/src/sys/netipsec/key.c#26 (text+ko) ==== @@ -4346,6 +4346,7 @@ VNET_ITERATOR_DECL(vnet_iter); time_t now = time_second; + VNET_LIST_RLOCK(); VNET_FOREACH(vnet_iter) { CURVNET_SET(vnet_iter); key_flush_spd(now); @@ -4354,6 +4355,7 @@ key_flush_spacq(now); CURVNET_RESTORE(); } + VNET_LIST_RUNLOCK(); #ifndef IPSEC_DEBUG2 /* do exchange to tick time !! */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810151521.m9FFLAlc037330>