ia64/xen-unstable

changeset 9692:19c55935580f

Reset the cached state to XenbusStateInitialising on resume -- we're connecting
to a new backend, so the state value needs to be reset.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Apr 12 18:53:38 2006 +0100 (2006-04-12)
parents edefe24d78bd
children 268f2b85f313 83eb8d81c96f
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Tue Apr 11 12:51:48 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Apr 12 18:53:38 2006 +0100
     1.3 @@ -825,6 +825,8 @@ static int resume_dev(struct device *dev
     1.4  		return err;
     1.5  	}
     1.6  
     1.7 +	xdev->state = XenbusStateInitialising;
     1.8 +
     1.9  	if (drv->resume)
    1.10  		err = drv->resume(xdev);
    1.11  	if (err)