ia64/linux-2.6.18-xen.hg

changeset 651:e86b8e0ac6fd

netback: Ignore duplicate notifications of frontend switch to
XenbusStateConnected.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Aug 21 10:36:07 2008 +0100 (2008-08-21)
parents cde79b8606c9
children 4dc80607377d
files drivers/xen/netback/xenbus.c
line diff
     1.1 --- a/drivers/xen/netback/xenbus.c	Mon Aug 18 10:52:29 2008 +0100
     1.2 +++ b/drivers/xen/netback/xenbus.c	Thu Aug 21 10:36:07 2008 +0100
     1.3 @@ -232,6 +232,8 @@ static void frontend_changed(struct xenb
     1.4  		break;
     1.5  
     1.6  	case XenbusStateConnected:
     1.7 +		if (dev->state == XenbusStateConnected)
     1.8 +			break;
     1.9  		backend_create_netif(be);
    1.10  		if (be->netif)
    1.11  			connect(be);