On (09/29/16 15:19), Petr Mladek wrote: > I am sorry but I do not understand this much. printk() should set the > alternative implementation in the critical section by default. > Why do we need to handle this so specially? > > Is it because of flushing in NMI context when panicing? I would call > vprintk_emit() directly from the flush_line() function in this case. > Then all other possible error printk's will get redirected to the > NMI buffer which is good enouh.
I'm going to re-do the entire thing. I had some cases in mind, like WARN from vsnprintf from printk from alt_printk_flushing from panic. or something like this. perhaps too complicated, will re-think it. -ss