On (10/04/16 14:22), Petr Mladek wrote: [..] > if (retry && console_trylock()) > goto again; > > with a safe variant, something like > > if (retry) { > local_irq_save(flags); > alt_printk_enter(); > lock_failed = console_trylock(); > alt_printk_exit(); > local_irq_restore(flags); > > if (!lock_failed) > goto again; > } > > Or do I miss anything?
nope, you don't. that's close to what I do in v3. > I am going to look at the second version of the patchset. thanks a lot for your review! I'll refresh the patch set a bit later this week. I think it's more or less in shape now.... well, still under the old name: alt_printk. -ss