xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Aurelien Chartier <aurelien.chartier@citrix.com>
Cc: ian.campbell@citrix.com, david.vrabel@citrix.com,
	Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH V4 2/2] xenbus: delay xenbus frontend resume if xenstored is not running
Date: Tue, 28 May 2013 08:45:26 -0400	[thread overview]
Message-ID: <20130528124526.GA6508@phenom.dumpdata.com> (raw)
In-Reply-To: <5194F464.4050901@citrix.com>

On Thu, May 16, 2013 at 03:59:48PM +0100, Aurelien Chartier wrote:
> 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.

Any ETA when the v5 with these changes will be posted? Thanks.
> 
> Aurelien.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 

  reply	other threads:[~2013-05-28 12:45 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
2013-05-28 12:45       ` Konrad Rzeszutek Wilk [this message]
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=20130528124526.GA6508@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=aurelien.chartier@citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).