Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540387
| From | Petr Mladek <pmladek@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCHv5 4/7] printk: always use deferred printk when flush printk_safe lines |
| Date | 2016-12-12 16:30 +0100 |
| Message-ID | <sNAI9-61i-29@gated-at.bofh.it> (permalink) |
| References | <sJA41-4xo-5@gated-at.bofh.it> <sJA42-4xo-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu 2016-12-01 22:55:43, Sergey Senozhatsky wrote: > Always use printk_deferred() in printk_safe_flush_line(). > Flushing can be done from NMI or printk_safe contexts (when > we are in panic), so we can't call console drivers, yet still > want to store the messages in the logbuf buffer. Therefore we > use a deferred printk version. Also this makes it clear that we are storing the messages into the main logbuffer here. Note that printk() might get redirected to the per-CPU buffer when this is triggered in panic. > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > Suggested-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Best Regards, Petr
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCHv5 0/7] printk: use printk_safe to handle printk() recursive calls Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-12-01 15:00 +0100
[RFC][PATCHv5 4/7] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-12-01 15:00 +0100
Re: [RFC][PATCHv5 4/7] printk: always use deferred printk when flush printk_safe lines Petr Mladek <pmladek@suse.com> - 2016-12-12 16:30 +0100
[RFC][PATCHv5 5/7] printk: report lost messages in printk safe/nmi contexts Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-12-01 15:00 +0100
Re: [RFC][PATCHv5 5/7] printk: report lost messages in printk safe/nmi contexts Petr Mladek <pmladek@suse.com> - 2016-12-12 17:00 +0100
Re: [RFC][PATCHv5 5/7] printk: report lost messages in printk safe/nmi contexts Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2016-12-13 03:00 +0100
Re: [RFC][PATCHv5 5/7] printk: report lost messages in printk safe/nmi contexts Petr Mladek <pmladek@suse.com> - 2016-12-14 12:00 +0100
[RFC][PATCHv5 2/7] printk: rename nmi.c and exported api Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-12-01 15:00 +0100
csiph-web