PERFORCE change 150124 for review
Marko Zec
zec at FreeBSD.org
Fri Sep 19 17:40:32 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=150124
Change 150124 by zec at 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();
[...]
}
More information about the p4-projects
mailing list