From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Guthro Subject: [PATCH] Ignore xenbus system state transitions on shutdown Date: Tue, 10 Jul 2007 11:18:49 -0400 Message-ID: <4693A359.5080107@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060805050304050006020807" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------060805050304050006020807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This implements a suggestion by Keir to remove the xenbus "ignore state transitions on shutdown" code for kernels without a shutdown callback. Signed-off-by: David Lively Signed-off-by: Ben Guthro --------------060805050304050006020807 Content-Type: text/x-patch; name="xenbus-system-state-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xenbus-system-state-fix.patch" diff -r 138bfca44447 drivers/xen/xenbus/xenbus_probe.c --- a/drivers/xen/xenbus/xenbus_probe.c Wed Jun 27 11:54:55 2007 -0400 +++ b/drivers/xen/xenbus/xenbus_probe.c Wed Jun 27 11:54:58 2007 -0400 @@ -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); --------------060805050304050006020807 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------060805050304050006020807--