From: Aurelien Chartier <aurelien.chartier@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>,
david.vrabel@citrix.com, ian.campbell@citrix.com
Subject: Re: [PATCH V4 2/2] xenbus: delay xenbus frontend resume if xenstored is not running
Date: Thu, 16 May 2013 15:59:48 +0100 [thread overview]
Message-ID: <5194F464.4050901@citrix.com> (raw)
In-Reply-To: <5194FC1D02000078000D6C07@nat28.tlf.novell.com>
On 16/05/13 14:32, Jan Beulich wrote:
>>>> On 16.05.13 at 14:34, Aurelien Chartier <aurelien.chartier@citrix.com> wrote:
>> @@ -440,6 +467,13 @@ static int __init xenbus_probe_frontend_init(void)
>>
>> register_xenstore_notifier(&xenstore_notifier);
>>
>> + xenbus_frontend_wq = create_workqueue("xenbus_frontend");
>> + if (!xenbus_frontend_wq) {
>> + printk(KERN_ERR "%s: create "
>> + "xenbus_frontend_workqueue failed\n", __func__);
> pr_err() should be the norm these days.
>
> And personally I consider it quite bad a habit to put function names
> in non-debugging log messages - this doesn't really help with
> anything (as long as the rest of the message is meaningful), but
> clutters the log.
I was using the same format as pciback error handling, but I can switch
to pr_err.
> And finally, you need to do proper error handling here - this code
> can be built as a module, and hence leaving notifier and bus
> registered upon failure sets up the kernel for crashing. Moving
> the code ahead of register_xenstore_notifier() will take care of
> one half of the problem, but you'll nevertheless will need to call
> bus_unregister() if you really intend to make this a fatal error
> condition (which by itself is questionable since in most scenarios
> you won't need the work queue at all).
Right, I will move the error handling to the xenbus frontend resume
function.
Aurelien.
next prev parent reply other threads:[~2013-05-16 14:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 12:34 [PATCH V4 0/2] xenbus: Fix S3 frontend resume when xenstored is not running Aurelien Chartier
2013-05-16 12:34 ` [PATCH V4 1/2] xenbus: save xenstore local status for later use Aurelien Chartier
2013-05-16 12:34 ` [PATCH V4 2/2] xenbus: delay xenbus frontend resume if xenstored is not running Aurelien Chartier
2013-05-16 13:32 ` Jan Beulich
2013-05-16 14:59 ` Aurelien Chartier [this message]
2013-05-28 12:45 ` Konrad Rzeszutek Wilk
2013-05-28 12:59 ` Aurelien Chartier
2013-05-28 16:18 ` Konrad Rzeszutek Wilk
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=5194F464.4050901@citrix.com \
--to=aurelien.chartier@citrix.com \
--cc=JBeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.