All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Guthro <bguthro@virtualiron.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Ignore xenbus system state transitions on shutdown
Date: Tue, 10 Jul 2007 11:18:49 -0400	[thread overview]
Message-ID: <4693A359.5080107@virtualiron.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

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 <dlively@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualrion.com>


[-- Attachment #2: xenbus-system-state-fix.patch --]
[-- Type: text/x-patch, Size: 746 bytes --]

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);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2007-07-10 15:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4693A359.5080107@virtualiron.com \
    --to=bguthro@virtualiron.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.