Skip to contentSkip to conversation

Ignore xenbus system state transitions on shutdown

PATCH New Ben Guthro 1 participant 1 message Jul 10, 2007 Xen hypervisor interface

lore
Share & tools
lore

Ben Guthro

author
#0 lore raw

PATCH 1/1 Ignore xenbus system state transitions on shutdown

This implements a suggestion by Keir to remove the xenbus "ignore state transitions on shutdown" code for kernels without a shutdown callback.

drivers/xen/xenbus/xenbus_probe.c +2 -0
diff -r 138bfca44447 drivers/xen/xenbus/xenbus_probe.c
@@ -208,6 +208,7 @@ static void otherend_changed(struct xenb
 	DPRINTK("state is %d (%s), %s, %s", state, xenbus_strstate(state),
 		dev->otherend_watch.node, vec[XS_WATCH_PATH]);
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
 	/*
 	 * Ignore xenbus transitions during shutdown. This prevents us doing
 	 * work that can fail e.g., when the rootfs is gone.
@@ -221,6 +222,7 @@ static void otherend_changed(struct xenb
 			xenbus_frontend_closed(dev);
 		return;
 	}
+#endif
 
 	if (drv->otherend_changed)
 		drv->otherend_changed(dev, state);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel