Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1550972
| From | Petr Mladek <pmladek@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv7 8/8] printk: convert the rest to printk-safe |
| Date | 2017-01-04 17:30 +0100 |
| Message-ID | <sVWBP-76c-19@gated-at.bofh.it> (permalink) |
| References | <sT0LE-36Q-9@gated-at.bofh.it> <sT0LE-36Q-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue 2016-12-27 23:16:11, Sergey Senozhatsky wrote: > This patch converts the rest of logbuf users (which are > out of printk recursion case, but can deadlock in printk). > To make printk-safe usage easier the patch introduces 4 > helper macros: > - logbuf_lock_irq()/logbuf_unlock_irq() > lock/unlock the logbuf lock and disable/enable local IRQ > > - logbuf_lock_irqsave(flags)/logbuf_unlock_irqrestore(flags) > lock/unlock the logbuf lock and saves/restores local IRQ state > > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> I like that it is so straigforward using the new macros. It is great that you discovered this before we finished the patchset. Reviewed-by: Petr Mladek <pmladek@suse.com> Best Regards, Petr PS: All patches look fine to me. I am going to do some tests before I could say a final word. I guess that it will be fine and we will be able to push it to linux-next.
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCHv7 8/8] printk: convert the rest to printk-safe Petr Mladek <pmladek@suse.com> - 2017-01-04 17:30 +0100 Re: [PATCHv7 8/8] printk: convert the rest to printk-safe Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-01-05 02:10 +0100
csiph-web