Re: [GIT PULL] tracing/NMI/printk: Use seq_buf for safe printing from NMI context
From: Linus Torvalds
Date: Thu Dec 11 2014 - 14:41:27 EST
On Thu, Dec 11, 2014 at 3:33 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> So you are saying that anytime the printk_func is not the default, the
> caller had to have disable preemption?
Yes. That, or change all of the vprintk_func entries. Otherwise, the
caller itself obviously doesn't know which cpu version it would get,
so disabling preemption inside printk is simply much too late.
Linus
--
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/