Re: [PATCH] x86/mce: Don't unregister CPU hotplug notifier in error path

From: Boris Ostrovsky
Date: Sun Jun 22 2014 - 13:26:27 EST



----- bp@xxxxxxxxx wrote:

> On Fri, Jun 20, 2014 at 10:04:37PM -0400, Boris Ostrovsky wrote:
> > I'll try it later but this doesn't look sufficient to me: we might
> not
> > reach this point if subsys_system_register() or
> zalloc_cpumask_var()
> > fail.
>
> If those fail, I'd say we have a much bigger problem than undeleted
> timers.


You can add

Tested-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>

if you prefer to go with that version. I still think it's not 100% reliable (because of what I said above) but at least it fixes the current breakage.

>
> > We could register the notifier as the first thing in this routine
> > (probably after mce_available() succeeds).
>
> I guess...


Actually that won't work --- we need to register bus at sysfs first.

-boris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/