Re: [RFC][PATCHv2 7/8] printk: add printk emergency_mode parameter

From: Sergey Senozhatsky
Date: Tue Apr 04 2017 - 04:29:38 EST


On (04/03/17 17:29), Petr Mladek wrote:
[..]
> > +module_param_cb(emergency_mode,
> > + &printk_kthread_disabled_ops,
> > + &printk_kthread_disabled,
> > + 0644);
> > +MODULE_PARM_DESC(emergency_mode,
> > + "don't offload message printing to printk kthread");
>
> I wonder if we could make this easier. Something like:
>
> static bool printk_force_emergency;
> module_param_named(force_emergency, printk_force_emergency,
> bool, S_IRUGO | S_IWUSR);

yes, can do. thanks.

> and use it instead of printk_kthread_disabled variable. It was
> confusing anyway. You already mentioned that it did not
> stop the kthread.

yeah, I didn't like the `printk_kthread_disabled' naming, but
at the same time didn't feel like having `printk_emergency' and
`printk_forced_emergency'. will take a look.

-ss