ia64/xen-unstable

changeset 6268:1895942150a5

This patch provides a workaround for bugzilla #90 which shows up far too
often when creating and then destroying lots of domUs and dom0 is SMP.
Details are in the [1]bug. With this patch, I now can create/destroy
domains in a tight loop for hours where previously every 3 to 10 cycles
would blow up.

1. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=90

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Aug 19 08:55:03 2005 +0000 (2005-08-19)
parents e355ae38c83b
children 513acbeac420
files patches/linux-2.6.12/workaround_double_br_del_if.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/linux-2.6.12/workaround_double_br_del_if.patch	Fri Aug 19 08:55:03 2005 +0000
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- linux-2.6.12/net/bridge/br_if.c	2005-06-17 14:48:29.000000000 -0500
     1.5 ++++ linux-2.6.12-xen0-smp/net/bridge/br_if.c	2005-08-18 15:17:27.302615846 -0500
     1.6 +@@ -382,7 +382,7 @@
     1.7 + {
     1.8 + 	struct net_bridge_port *p = dev->br_port;
     1.9 + 	
    1.10 +-	if (!p || p->br != br) 
    1.11 ++	if (!p || p->br != br || p->state == BR_STATE_DISABLED)
    1.12 + 		return -EINVAL;
    1.13 + 
    1.14 + 	br_sysfs_removeif(p);