diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-04-12 18:53:38 +0100 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-04-12 18:53:38 +0100 |
commit | f9eb14bf6a6a5097885ce33573f75a2c3f3a1d5c (patch) | |
tree | 3a847526300ca444bfe534eb200f520e271328fc /linux-2.6-xen-sparse | |
parent | 631caafe9586d9460f06791f1e184b8eebb275d9 (diff) | |
download | xen-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.c | 2 |
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) |