aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
diff options
context:
space:
mode:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-04-12 18:53:38 +0100
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>2006-04-12 18:53:38 +0100
commitf9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c (patch)
tree3a847526300ca444bfe534eb200f520e271328fc /linux-2.6-xen-sparse
parent631caafe9586d9460f06791f1e184b8eebb275d9 (diff)
downloadxen-f9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c.tar.gz
xen-f9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c.tar.bz2
xen-f9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c.zip
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>
Diffstat (limited to 'linux-2.6-xen-sparse')
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
index 94fd44f7f9..09bedf7b66 100644
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
@@ -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)