ia64/linux-2.6.18-xen.hg

changeset 522:bb12908b737a

xenbus: Don't try to talk to xenstore from dom0 when xenstore has
already been killed during reboot/shutdown.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Christian Limpach <christian.limpach@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:17:41 2008 +0100 (2008-04-15)
parents e5f0712d7520
children b9ec29696130
files drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/drivers/xen/xenbus/xenbus_probe.c	Tue Apr 15 15:16:28 2008 +0100
     1.2 +++ b/drivers/xen/xenbus/xenbus_probe.c	Tue Apr 15 15:17:41 2008 +0100
     1.3 @@ -347,6 +347,9 @@ static void xenbus_dev_shutdown(struct d
     1.4  
     1.5  	DPRINTK("%s", dev->nodename);
     1.6  
     1.7 +	if (is_initial_xendomain())
     1.8 +		return;
     1.9 +
    1.10  	get_device(&dev->dev);
    1.11  	if (dev->state != XenbusStateConnected) {
    1.12  		printk("%s: %s: %s != Connected, skipping\n", __FUNCTION__,