From: aq <aquynh@gmail.com>
To: Dan Smith <danms@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] Convert shutdown to use xenstore
Date: Fri, 5 Aug 2005 12:58:51 +0900 [thread overview]
Message-ID: <9cde8bff050804205857e191e4@mail.gmail.com> (raw)
In-Reply-To: <m364ulzpde.fsf@theine.beaverton.ibm.com>
On 8/5/05, Dan Smith <danms@us.ibm.com> wrote:
> The attached patch:
>
> 1. Converts the shutdown driver and xend to use the store instead of
> control messages,
>
> 2. Includes Anthony's xenstore notification code, and
>
> 3. Changes xend so that sysrq's are no longer sent as "special case"
> shutdown messages. Store keys are cheap, so making the sysrq
> delivery less obscure is good.
>
+static int setup_shutdown_watcher(struct notifier_block *notifier,
+ unsigned long event,
+ void *data)
+{
+ int err1=0, err2=0;
+
+ down(&xenbus_lock);
+ err1 = register_xenbus_watch(&shutdown_watch);
+#ifdef CONFIG_MAGIC_SYSRQ
+ err2 = register_xenbus_watch(&sysrq_watch);
+#endif
+ up(&xenbus_lock);
+
+ if (err1) {
+ printk("Failed to set shutdown watcher\n");
+ }
How about putting declaration of err2 inside a "#ifdef CONFIG_MAGIC_SYSRQ" ?
Besides i think some printk should use KERN_ERR to report error properly.
regards,
aq
next prev parent reply other threads:[~2005-08-05 3:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 15:35 [PATCH] Convert shutdown to use xenstore Dan Smith
2005-08-05 1:58 ` Mark Williamson
2005-08-05 2:48 ` Rusty Russell
2005-08-05 2:09 ` Rusty Russell
2005-08-05 2:18 ` Anthony Liguori
2005-08-05 8:58 ` Keir Fraser
2005-08-05 3:58 ` aq [this message]
2005-08-05 4:06 ` Dan Smith
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=9cde8bff050804205857e191e4@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=danms@us.ibm.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.