PERFORCE change 163490 for review
Marko Zec
zec at FreeBSD.org
Thu Jun 4 14:31:57 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163490
Change 163490 by zec at zec_amdx4 on 2009/06/04 14:31:28
Don't free vnet and per-vnet-module memory on vimage -d just
yet, while tracking down uncancelled callout events.
Affected files ...
.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#95 edit
Differences ...
==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#95 (text+ko) ====
@@ -563,8 +563,10 @@
if (vmi->vmi_size) {
if (curvnet->mod_data[vmi->vmi_id] == NULL)
panic("vi_destroy: %s\n", vmi->vmi_name);
+#ifdef NOTYET
free(curvnet->mod_data[vmi->vmi_id], M_VNET);
curvnet->mod_data[vmi->vmi_id] = NULL;
+#endif
}
#endif
@@ -723,7 +725,9 @@
/* hopefully, we are finally OK to free the vnet container itself! */
vnet->vnet_magic_n = 0xdeadbeef;
+#ifdef NOTYET
free(vnet, M_VNET);
+#endif
free(vprocg, M_VPROCG);
free(vip, M_VIMAGE);
More information about the p4-projects
mailing list