]> xenbits.xensource.com Git - xen.git/commitdiff
Reset the cached state to XenbusStateInitialising on resume -- we're connecting
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 12 Apr 2006 17:53:38 +0000 (18:53 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 12 Apr 2006 17:53:38 +0000 (18:53 +0100)
to a new backend, so the state value needs to be reset.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c

index 94fd44f7f9d5e9c82a2e0ffca068c6ed2f6d49cf..09bedf7b66511ca5108124486c23768d81d67fea 100644 (file)
@@ -825,6 +825,8 @@ static int resume_dev(struct device *dev, void *data)
                return err;
        }
 
+       xdev->state = XenbusStateInitialising;
+
        if (drv->resume)
                err = drv->resume(xdev);
        if (err)