Date: Fri, 19 Sep 2008 17:40:31 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 150124 for review Message-ID: <200809191740.m8JHeVqu085830@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=150124 Change 150124 by zec@zec_tpx32 on 2008/09/19 17:40:17 Reflect recent marco renaming in provided code sample. Affected files ... .. //depot/projects/vimage/porting_to_vimage.txt#9 edit Differences ... ==== //depot/projects/vimage/porting_to_vimage.txt#9 (text+ko) ==== @@ -353,17 +353,17 @@ [...] [...] - VNET_LIST_REF(); - VNET_FOREACH(vnet_iter) { + VNET_LIST_RLOCK(); + VNET_LIST_FOREACH(vnet_iter) { CURVNET_SET(vnet_iter); INIT_VNET_NET(vnet_iter); [...] do work, including calling code that assumes we have curvnet set. [...] - CURVNET_RESTORE(); /* XXX */ + CURVNET_RESTORE(); } - VNET_LIST_UNREF(); + VNET_LIST_RUNLOCK(); [...] }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809191740.m8JHeVqu085830>